]> git.ipfire.org Git - thirdparty/curl.git/log
thirdparty/curl.git
4 years agoschannel: plug a memory-leak
Gisle Vanem [Thu, 14 Jan 2021 16:09:37 +0000 (17:09 +0100)] 
schannel: plug a memory-leak

... when built without -DUNICODE.

Closes #6457

4 years agogitattributes: Set batch files to CRLF line endings on checkout
Jay Satiro [Wed, 13 Jan 2021 07:03:57 +0000 (02:03 -0500)] 
gitattributes: Set batch files to CRLF line endings on checkout

If a batch file is run without CRLF line endings (ie LF-only) then
arbitrary behavior may occur. I consider that a bug in Windows, however
the effects can be serious enough (eg unintended code executed) that
we're fixing it in the repo by requiring CRLF line endings for batch
files on checkout.

Prior to this change the checked-out line endings of batch files were
dependent on a user's git preferences. On Windows it is common for git
users to have automatic CRLF conversion enabled (core.autocrlf true),
but those users that don't would run into this behavior.

For example a user has reported running the Visual Studio project
generator batch file (projects/generate.bat) and it looped forever.
Output showed that the Windows OS interpreter was occasionally jumping
to arbitrary points in the batch file and executing commands. This
resulted in unintended files being removed (a removal sequence called)
and looping forever.

Ref: https://serverfault.com/q/429594
Ref: https://stackoverflow.com/q/232651
Ref: https://www.dostips.com/forum/viewtopic.php?t=8988
Ref: https://git-scm.com/docs/gitattributes#_checking_out_and_checking_in
Ref: https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#_core_autocrlf

Bug: https://github.com/curl/curl/discussions/6427
Reported-by: Ganesh Kamath
Closes https://github.com/curl/curl/pull/6442

4 years agotool_operate: spellfix a comment
Daniel Stenberg [Thu, 14 Jan 2021 12:40:12 +0000 (13:40 +0100)] 
tool_operate: spellfix a comment

4 years agoROADMAP: refreshed
Daniel Stenberg [Thu, 14 Jan 2021 08:48:42 +0000 (09:48 +0100)] 
ROADMAP: refreshed

o removed HSTS - already implemented
o added HTTPS RR records
o mention HTTP/3 completion

4 years agohttp_chunks: remove Curl_ prefix from static functions
Daniel Stenberg [Wed, 13 Jan 2021 10:53:41 +0000 (11:53 +0100)] 
http_chunks: remove Curl_ prefix from static functions

4 years agotransfer: remove Curl_ prefix from static functions
Daniel Stenberg [Wed, 13 Jan 2021 10:52:41 +0000 (11:52 +0100)] 
transfer: remove Curl_ prefix from static functions

4 years agotftp: remove Curl_ prefix from static functions
Daniel Stenberg [Wed, 13 Jan 2021 10:51:50 +0000 (11:51 +0100)] 
tftp: remove Curl_ prefix from static functions

4 years agomulti: remove Curl_ prefix from static functions
Daniel Stenberg [Wed, 13 Jan 2021 10:50:43 +0000 (11:50 +0100)] 
multi: remove Curl_ prefix from static functions

4 years agoldap: remove Curl_ prefix from static functions
Daniel Stenberg [Wed, 13 Jan 2021 10:47:41 +0000 (11:47 +0100)] 
ldap: remove Curl_ prefix from static functions

4 years agodoh: remove Curl_ prefix from static functions
Daniel Stenberg [Wed, 13 Jan 2021 10:46:14 +0000 (11:46 +0100)] 
doh: remove Curl_ prefix from static functions

4 years agoasyn-ares: remove Curl_ prefix from static functions
Daniel Stenberg [Wed, 13 Jan 2021 10:43:35 +0000 (11:43 +0100)] 
asyn-ares: remove Curl_ prefix from static functions

4 years agovtls: remove Curl_ prefix from static functions
Daniel Stenberg [Wed, 13 Jan 2021 08:26:13 +0000 (09:26 +0100)] 
vtls: remove Curl_ prefix from static functions

4 years agobearssl: remove Curl_ prefix from static functions
Daniel Stenberg [Wed, 13 Jan 2021 07:53:40 +0000 (08:53 +0100)] 
bearssl: remove Curl_ prefix from static functions

4 years agombedtls: remove Curl_ prefix from static functions
Daniel Stenberg [Wed, 13 Jan 2021 07:45:23 +0000 (08:45 +0100)] 
mbedtls: remove Curl_ prefix from static functions

4 years agowolfssl: remove Curl_ prefix from static functions
Daniel Stenberg [Wed, 13 Jan 2021 07:42:36 +0000 (08:42 +0100)] 
wolfssl: remove Curl_ prefix from static functions

4 years agonss: remove Curl_ prefix from static functions
Daniel Stenberg [Wed, 13 Jan 2021 07:36:10 +0000 (08:36 +0100)] 
nss: remove Curl_ prefix from static functions

4 years agognutls: remove Curl_ prefix from static functions
Daniel Stenberg [Wed, 13 Jan 2021 07:28:10 +0000 (08:28 +0100)] 
gnutls: remove Curl_ prefix from static functions

4 years agoopenssl: remove Curl_ prefix from static functions
Daniel Stenberg [Wed, 13 Jan 2021 07:18:22 +0000 (08:18 +0100)] 
openssl: remove Curl_ prefix from static functions

... as we reserve this prefix to library-wide functions.

Closes #6443

4 years agonss: get the run-time version instead of build-time
Daniel Stenberg [Wed, 13 Jan 2021 15:01:57 +0000 (16:01 +0100)] 
nss: get the run-time version instead of build-time

Closes #6445

4 years agotool_doswin: Restore original console settings on CTRL signal
Jay Satiro [Thu, 19 Nov 2020 21:49:24 +0000 (16:49 -0500)] 
tool_doswin: Restore original console settings on CTRL signal

- Move Windows terminal init code from tool_main to tool_doswin.

- Restore the original console settings on CTRL+C and CTRL+BREAK.

Background: On Windows the curl tool changes the console settings to
enable virtual terminal processing (eg color output) if supported
(ie Win 10). The original settings are restored on exit but prior to
this change were not restored in the case of the CTRL signals.

Windows VT behavior varies depending on console/powershell/terminal;
refer to the discussion in #6226.

Assisted-by: Rich Turner
Closes https://github.com/curl/curl/pull/6226

4 years agogen.pl: fix perl syntax
Daniel Stenberg [Tue, 12 Jan 2021 07:12:13 +0000 (08:12 +0100)] 
gen.pl: fix perl syntax

Follow-up to 324cf1d2e

4 years agohelp: update to current codebase
Emil Engler [Tue, 12 Jan 2021 06:34:52 +0000 (07:34 +0100)] 
help: update to current codebase

This commit bumps the help to the current state of the project.

Closes #6437

4 years agodocs: fix line length bug in gen.pl
Emil Engler [Mon, 11 Jan 2021 19:27:58 +0000 (20:27 +0100)] 
docs: fix line length bug in gen.pl

The script warns if the length of $opt and $desc is > 78. However, these
two variables are on totally separate lines so the check makes no sense.
Also the $bitmask field is totally forgotten. Currently this leads to
two warnings within `--resolve` and `--aws-sigv4`.

Closes #6438

4 years agodocs: fix wrong documentation in help.d
Emil Engler [Mon, 11 Jan 2021 19:12:48 +0000 (20:12 +0100)] 
docs: fix wrong documentation in help.d

curl does not list all categories when you invoke "--help" without any
parameters.

Closes #6436

4 years agoaws-sigv4.d: polish the wording
Daniel Stenberg [Mon, 11 Jan 2021 21:37:41 +0000 (22:37 +0100)] 
aws-sigv4.d: polish the wording

Make it shorter and imperative form

Closes #6439

4 years agomisc: fix typos
Fabian Keil [Thu, 7 Jan 2021 20:11:17 +0000 (21:11 +0100)] 
misc: fix typos

Bug: https://curl.se/mail/lib-2021-01/0063.html
Closes #6434

4 years agomulti_runsingle: bail out early on data->conn == NULL
Daniel Stenberg [Mon, 11 Jan 2021 08:37:44 +0000 (09:37 +0100)] 
multi_runsingle: bail out early on data->conn == NULL

As that's a significant error condition and scan-build warns for NULL
pointer dereferences if we don't.

Closes #6433

4 years agomulti: skip DONE state if there's no connection left for ftp wildcard
Daniel Stenberg [Mon, 11 Jan 2021 09:01:49 +0000 (10:01 +0100)] 
multi: skip DONE state if there's no connection left for ftp wildcard

... to avoid running in that state with data->conn being NULL.

4 years agolibssh2: fix "Value stored to 'readdir_len' is never read"
Daniel Stenberg [Mon, 11 Jan 2021 08:18:30 +0000 (09:18 +0100)] 
libssh2: fix "Value stored to 'readdir_len' is never read"

Detected by scan-build

4 years agoconnect: mark intentional ignores of setsockopt return values
Daniel Stenberg [Sun, 10 Jan 2021 23:13:01 +0000 (00:13 +0100)] 
connect: mark intentional ignores of setsockopt return values

Pointed out by Coverity

Closes #6431

4 years agohttp_proxy: Fix CONNECT chunked encoding race condition
Jay Satiro [Mon, 11 Jan 2021 00:01:08 +0000 (19:01 -0500)] 
http_proxy: Fix CONNECT chunked encoding race condition

- During the end-of-headers response phase do not mark the tunnel
  complete unless the response body was completely parsed/ignored.

Prior to this change if the entirety of a CONNECT response with chunked
encoding was not received by the time the final header was parsed then
the connection would be marked done prematurely, before all the chunked
data could be read in and ignored (since this is what we do with any
CONNECT response body) and the connection could not be used.

Bug: https://curl.se/mail/lib-2021-01/0033.html
Reported-by: Fabian Keil
Closes https://github.com/curl/curl/pull/6432

4 years agoRELEASE-NOTES: synced
Daniel Stenberg [Sun, 10 Jan 2021 23:27:46 +0000 (00:27 +0100)] 
RELEASE-NOTES: synced

4 years agourl: if IDNA conversion fails, fallback to Transitional
Daniel Stenberg [Sun, 10 Jan 2021 14:35:48 +0000 (15:35 +0100)] 
url: if IDNA conversion fails, fallback to Transitional

This improves IDNA2003 compatiblity.

Reported-by: Bubu on github
Fixes #6423
Closes #6428

4 years agotravis: make the Hyper build from its master branch
Daniel Stenberg [Sun, 10 Jan 2021 21:59:19 +0000 (22:59 +0100)] 
travis: make the Hyper build from its master branch

Closes #6430

4 years agohttp: make 'authneg' also work for Hyper
Daniel Stenberg [Fri, 8 Jan 2021 15:17:12 +0000 (16:17 +0100)] 
http: make 'authneg' also work for Hyper

When doing a request with a request body expecting a 401/407 back, that
initial request is sent with a zero content-length. Test 177 and more.

Closes #6424

4 years agocmake: Add an option to disable libidn2
Jay Satiro [Tue, 22 Dec 2020 20:31:03 +0000 (15:31 -0500)] 
cmake: Add an option to disable libidn2

New option USE_LIBIDN2 defaults to ON for libidn2 detection. Prior to
this change libidn2 detection could not be turned off in cmake builds.

Reported-by: William A Rowe Jr
Fixes https://github.com/curl/curl/issues/6361
Closes https://github.com/curl/curl/pull/6362

4 years agoHYPER: no longer needs the special branch
Daniel Stenberg [Fri, 8 Jan 2021 22:54:22 +0000 (23:54 +0100)] 
HYPER: no longer needs the special branch

4 years agotest179: use consistent header line endings
Daniel Stenberg [Fri, 8 Jan 2021 09:57:48 +0000 (10:57 +0100)] 
test179: use consistent header line endings

... to make "Hyper mode" work better.

4 years agofile: don't provide content-length for directories
Daniel Stenberg [Thu, 7 Jan 2021 15:00:41 +0000 (16:00 +0100)] 
file: don't provide content-length for directories

... as it is misleading.

Ref #6379
Closes #6421

4 years agoTODO: Directory listing for FILE:
Daniel Stenberg [Thu, 7 Jan 2021 15:16:13 +0000 (16:16 +0100)] 
TODO: Directory listing for FILE:

Ref #6379

4 years agocurl.h: add CURLPROTO_GOPHERS as own protocol identifier
Daniel Stenberg [Tue, 5 Jan 2021 16:22:09 +0000 (17:22 +0100)] 
curl.h: add CURLPROTO_GOPHERS as own protocol identifier

Follow-up to a1f06f32b860, to make sure it can be handled separately
from plain gopher.

Closes #6418

4 years agohttp: have CURLOPT_FAILONERROR fail after all headers
Daniel Stenberg [Mon, 4 Jan 2021 17:28:42 +0000 (18:28 +0100)] 
http: have CURLOPT_FAILONERROR fail after all headers

... so that Retry-After and other meta-content can still be used.

Added 1634 to verify. Adjusted test 194 and 281 since --fail now also
includes the header-terminating CRLF in the output before it exits.

Fixes #6408
Closes #6409

4 years agoglobal_init: debug builds allocates a byte in init
Daniel Stenberg [Mon, 4 Jan 2021 23:03:57 +0000 (00:03 +0100)] 
global_init: debug builds allocates a byte in init

... to make build tools/valgrind warn if no curl_global_cleanup is
called.

This is conditionally only done for debug builds with the env variable
CURL_GLOBAL_INIT set.

Closes #6410

4 years agolib/unit tests: add missing curl_global_cleanup() calls
Daniel Stenberg [Mon, 4 Jan 2021 23:03:31 +0000 (00:03 +0100)] 
lib/unit tests: add missing curl_global_cleanup() calls

4 years agotravis: adapt to Hyper build change
Daniel Stenberg [Tue, 5 Jan 2021 23:50:49 +0000 (00:50 +0100)] 
travis: adapt to Hyper build change

Closes #6419

4 years agopretransfer: setup the User-Agent header here
Daniel Stenberg [Tue, 5 Jan 2021 13:30:21 +0000 (14:30 +0100)] 
pretransfer: setup the User-Agent header here

... and not in the connection setup, as for multiplexed transfers the
connection setup might be skipped and then the transfer would end up
without the set user-agent!

Reported-by: Flameborn on github
Assisted-by: Andrey Gursky
Assisted-by: Jay Satiro
Assisted-by: Mike Gelfand
Fixes #6312
Closes #6417

4 years agotest66: disable with Hyper
Daniel Stenberg [Tue, 5 Jan 2021 16:27:05 +0000 (17:27 +0100)] 
test66: disable with Hyper

...as Hyper doesn't support HTTP/0.9

4 years agoc-hyper: poll the tasks until end correctly
Daniel Stenberg [Tue, 5 Jan 2021 10:47:22 +0000 (11:47 +0100)] 
c-hyper: poll the tasks until end correctly

... makes test 36 work.

Closes #6412

4 years agomk-ca-bundle.pl: deterministic output when using -t
Gergely Nagy [Tue, 5 Jan 2021 11:49:55 +0000 (12:49 +0100)] 
mk-ca-bundle.pl: deterministic output when using -t

Printing trust purposes are now sorted, making the output deterministic
when running on the same input certdata.txt.

Closes #6413

4 years agoKNOWN_BUGS: fixed "wolfSSL lacks support for renegotiation"
Daniel Stenberg [Tue, 5 Jan 2021 09:08:06 +0000 (10:08 +0100)] 
KNOWN_BUGS: fixed "wolfSSL lacks support for renegotiation"

Fixed by #6411

4 years agowolfssl: add SECURE_RENEGOTIATION support
Himanshu Gupta [Mon, 31 Aug 2020 19:35:35 +0000 (19:35 +0000)] 
wolfssl: add SECURE_RENEGOTIATION support

Closes #6411

4 years agoRELEASE-NOTES: synced
Daniel Stenberg [Tue, 5 Jan 2021 08:44:58 +0000 (09:44 +0100)] 
RELEASE-NOTES: synced

4 years agowolfssl: update copyright year range
Daniel Stenberg [Tue, 5 Jan 2021 08:39:59 +0000 (09:39 +0100)] 
wolfssl: update copyright year range

Follow-up to 7de2e96535e9

4 years agoc-hyper: make CURLE_GOT_NOTHING work
Daniel Stenberg [Mon, 4 Jan 2021 15:55:30 +0000 (16:55 +0100)] 
c-hyper: make CURLE_GOT_NOTHING work

Test 30

Closes #6407

4 years agohttp_proxy: make CONNECT work with the Hyper backend
Daniel Stenberg [Mon, 4 Jan 2021 08:36:41 +0000 (09:36 +0100)] 
http_proxy: make CONNECT work with the Hyper backend

Makes test 80 run

Closes #6406

4 years agoTODO: --fail-with-body perchance?
Daniel Stenberg [Tue, 5 Jan 2021 08:36:10 +0000 (09:36 +0100)] 
TODO: --fail-with-body perchance?

4 years agotool_operate: fix the suppression logic of some error messages
Jay Satiro [Sat, 2 Jan 2021 08:40:24 +0000 (03:40 -0500)] 
tool_operate: fix the suppression logic of some error messages

- Fix the failed truncation and failed writing body error messages to
  not be shown unless error messages are shown. (ie the user has
  specified -sS, or has not specified -s).

- Also prefix same error messages with "curl: ", for example:
  curl: (23) Failed to truncate, exiting

Prior to this change the failed truncation error messages would be shown
if not -s, but did not account for -sS which should show.

Prior to this change the failed writing body error messages would be
shown always.

Ref: https://curl.se/docs/manpage.html#-S

Bug: https://curl.se/mail/archive-2020-12/0017.html
Reported-by: Hongyi Zhao
Closes https://github.com/curl/curl/pull/6402

4 years agowolfssl: Support wolfSSL builds missing TLS 1.1
Jay Satiro [Tue, 29 Dec 2020 20:46:42 +0000 (15:46 -0500)] 
wolfssl: Support wolfSSL builds missing TLS 1.1

The wolfSSL TLS library defines NO_OLD_TLS in some of their build
configurations and that causes the library to be built without TLS 1.1.
For example if MD5 is explicitly disabled when building wolfSSL then
that defines NO_OLD_TLS and the library is built without TLS 1.1 [1].

Prior to this change attempting to build curl with a wolfSSL that was
built with NO_OLD_TLS would cause a build link error undefined reference
to wolfTLSv1_client_method.

[1]: https://github.com/wolfSSL/wolfssl/blob/v4.5.0-stable/configure.ac#L2366

Bug: https://curl.se/mail/lib-2020-12/0121.html
Reported-by: Julian Montes
Closes https://github.com/curl/curl/pull/6388

4 years agotest1633: set appropriate name
Daniel Stenberg [Mon, 4 Jan 2021 16:58:05 +0000 (17:58 +0100)] 
test1633: set appropriate name

"--retry with a 429 response and Retry-After:"

4 years agotravis: limit the tests with quiche builds to HTTPS and FTPS only
Daniel Stenberg [Sat, 2 Jan 2021 10:44:58 +0000 (11:44 +0100)] 
travis: limit the tests with quiche builds to HTTPS and FTPS only

... since it runs into the 50 minute time limit too often otherwise.

Closes #6403

4 years agoHISTORY: added dates to early history
Daniel Stenberg [Sun, 3 Jan 2021 15:27:51 +0000 (16:27 +0100)] 
HISTORY: added dates to early history

Mostly thanks to this archived web page for urlget:

https://web.archive.org/web/19980216125115/http://www.inf.ufrgs.br/~sagula/urlget.html

4 years agohttpauth: make multi-request auth work with custom port
Daniel Stenberg [Fri, 1 Jan 2021 22:41:21 +0000 (23:41 +0100)] 
httpauth: make multi-request auth work with custom port

When doing HTTP authentication and a port number set with CURLOPT_PORT,
the code would previously have the URL's port number override as if it
had been a redirect to an absolute URL.

Added test 1568 to verify.

Reported-by: UrsusArctos on github
Fixes #6397
Closes #6400

4 years agolanguage: s/behaviour/behavior/g
Emil Engler [Thu, 31 Dec 2020 09:11:49 +0000 (10:11 +0100)] 
language: s/behaviour/behavior/g

We currently use both spellings the british "behaviour" and the american
"behavior". However "behavior" is more used in the project so I think
it's worth dropping the british name.

Closes #6395

4 years agocmdline-opts/retry.d: mention response code 429 as well
Daniel Stenberg [Sat, 2 Jan 2021 10:51:55 +0000 (11:51 +0100)] 
cmdline-opts/retry.d: mention response code 429 as well

Reported-by: Cherish98
Bug: https://curl.se/mail/archive-2020-12/0018.html

4 years agodocs/HYPER.md: mention outstanding issues
Daniel Stenberg [Sat, 2 Jan 2021 10:42:27 +0000 (11:42 +0100)] 
docs/HYPER.md: mention outstanding issues

To make it more obvious to users what doesn't work (yet)

Closes #6389

4 years agoCOPYING/configure: bump copyright year range
Daniel Stenberg [Thu, 31 Dec 2020 23:52:28 +0000 (00:52 +0100)] 
COPYING/configure: bump copyright year range

4 years agoc-hyper: add timecondition to the request
Daniel Stenberg [Thu, 31 Dec 2020 23:48:40 +0000 (00:48 +0100)] 
c-hyper: add timecondition to the request

Test 77-78

Closes #6391

4 years agoc-hyper: make Digest and NTLM work
Daniel Stenberg [Wed, 30 Dec 2020 10:58:39 +0000 (11:58 +0100)] 
c-hyper: make Digest and NTLM work

Test 64, 65, 67, 68, 69, 70, 72

Closes #6390

4 years agoexamples/curlgtk.c: fix the copyright year range
Daniel Stenberg [Wed, 30 Dec 2020 21:37:44 +0000 (22:37 +0100)] 
examples/curlgtk.c: fix the copyright year range

... and make private functions static.

4 years agodocs/examples: adjust prototypes for CURLOPT_READFUNCTION
Olaf Hering [Wed, 30 Dec 2020 16:01:47 +0000 (17:01 +0100)] 
docs/examples: adjust prototypes for CURLOPT_READFUNCTION

The type of the buffer in curl_read_callback is 'char *', not 'void *'.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Closes #6392

4 years agoexamples: fix more empty expression statement has no effect
Daniel Stenberg [Wed, 30 Dec 2020 21:18:45 +0000 (22:18 +0100)] 
examples: fix more empty expression statement has no effect

Follow-up to 26e46617b9

4 years agocleanup: fix two empty expression statement has no effect
Daniel Stenberg [Wed, 30 Dec 2020 15:54:28 +0000 (16:54 +0100)] 
cleanup: fix two empty expression statement has no effect

Follow-up to 26e46617b9

4 years agoconfigure: set -Wextra-semi-stmt for clang with --enable-debug
Daniel Stenberg [Sat, 26 Dec 2020 15:41:09 +0000 (16:41 +0100)] 
configure: set -Wextra-semi-stmt for clang with --enable-debug

To have it properly complain on empty statements with no effect.

Ref: #6376
Closes #6378

4 years agotests/unit: fix empty statements with no effect
Daniel Stenberg [Tue, 29 Dec 2020 16:21:24 +0000 (17:21 +0100)] 
tests/unit: fix empty statements with no effect

... by making macros use "do {} while(0)"

4 years agodns: extend CURLOPT_RESOLVE syntax for adding non-permanent entries
Paul Groke [Thu, 10 Dec 2020 16:38:14 +0000 (17:38 +0100)] 
dns: extend CURLOPT_RESOLVE syntax for adding non-permanent entries

Extend the syntax of CURLOPT_RESOLVE strings: allow using a '+' prefix
(similar to the existing '-' prefix for removing entries) to add
DNS cache entries that will time out just like entries that are added
by libcurl itself.

Append " (non-permanent)" to info log message in case a non-permanent
entry is added.

Adjust relevant comments to reflect the new behavior.

Adjust documentation.

Extend unit1607 to test the new functionality.

Closes #6294

4 years agoschannel: fix "empty expression statement has no effect"
Daniel Stenberg [Sun, 27 Dec 2020 10:05:15 +0000 (11:05 +0100)] 
schannel: fix "empty expression statement has no effect"

Bug: https://github.com/curl/curl/commit/8ab78f720ae478d533e30b202baec4b451741579#commitcomment-45445950
Reported-by: Gisle Vanem
Closes #6381

4 years agodocs: remove redundant "better" in --fail help
Denis Laxalde [Tue, 29 Dec 2020 09:44:35 +0000 (10:44 +0100)] 
docs: remove redundant "better" in --fail help

Closes #6385

4 years agocurl.1: fix typo microsft -> microsoft
Kevin Ushey [Sun, 27 Dec 2020 04:19:55 +0000 (20:19 -0800)] 
curl.1: fix typo microsft -> microsoft

Closes #6380

4 years agomisc: assorted typo fixes
XhmikosR [Fri, 25 Dec 2020 05:52:59 +0000 (07:52 +0200)] 
misc: assorted typo fixes

Closes #6375

4 years agoRELEASE-NOTES: synced
Daniel Stenberg [Sat, 26 Dec 2020 22:53:37 +0000 (23:53 +0100)] 
RELEASE-NOTES: synced

4 years agotool_operate: avoid NULL dereference of first_arg
Daniel Stenberg [Sat, 26 Dec 2020 15:20:54 +0000 (16:20 +0100)] 
tool_operate: avoid NULL dereference of first_arg

Follow-up to 6a5e020d4d2b04a
Identified by OSS-Fuzz
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28999
Closes #6377

4 years agomisc: fix "warning: empty expression statement has no effect"
Daniel Stenberg [Sat, 26 Dec 2020 14:43:25 +0000 (15:43 +0100)] 
misc: fix "warning: empty expression statement has no effect"

Turned several macros into do-while(0) style to allow their use to work
find with semicolon.

Bug: https://github.com/curl/curl/commit/08e8455dddc5e48e58a12ade3815c01ae3da3b64#commitcomment-45433279
Follow-up to 08e8455dddc5e4
Reported-by: Gisle Vanem
Closes #6376

4 years agoKNOWN_BUGS: 6.10 curl never completes Negotiate over HTTP
Daniel Stenberg [Fri, 25 Dec 2020 16:16:19 +0000 (17:16 +0100)] 
KNOWN_BUGS: 6.10 curl never completes Negotiate over HTTP

Closes #5235
Closes #6370

4 years agowriteout: fix NULL dereference for "this url"
Daniel Stenberg [Fri, 25 Dec 2020 22:59:31 +0000 (23:59 +0100)] 
writeout: fix NULL dereference for "this url"

Detected by torture test 1029

Follow-up to 7a90ddf88f5a

Closes #6374

4 years agofailf: remove newline from formatting strings
Daniel Stenberg [Wed, 23 Dec 2020 22:41:13 +0000 (23:41 +0100)] 
failf: remove newline from formatting strings

... as failf adds one itself.

Also: add an assert() to failf() that triggers on a newline in the
format string!

Closes #6365

4 years agoCI: fix warning with the latest versions
XhmikosR [Fri, 25 Dec 2020 05:40:57 +0000 (07:40 +0200)] 
CI: fix warning with the latest versions

`git checkout HEAD^2` is no longer needed

Closes #6369

4 years agoINSTALL: update the list known OSes and CPU archs curl has run on
Daniel Stenberg [Wed, 23 Dec 2020 23:13:09 +0000 (00:13 +0100)] 
INSTALL: update the list known OSes and CPU archs curl has run on

Closes #6366

4 years agocurl: fix handling of -q option
Cherish98 [Wed, 23 Dec 2020 12:59:00 +0000 (12:59 +0000)] 
curl: fix handling of -q option

The match of the "-q" option (short for "--disable") should:
a) allow concatenation with other single-letters; and
b) be case-sensitive, lest confusing with "-Q" ("--quote")

Closes #6364

4 years agotests/badsymbols.pl: ignore stand-alone single hash lines
Daniel Stenberg [Mon, 21 Dec 2020 21:49:42 +0000 (22:49 +0100)] 
tests/badsymbols.pl: ignore stand-alone single hash lines

Bug: https://curl.se/mail/lib-2020-12/0084.html
Reported-by: Dennis Clarke
Assisted-by: Jay Satiro
Closes #6355

4 years agocurl_easy_pause.3: add multiplexed pause effects
Daniel Stenberg [Tue, 22 Dec 2020 15:08:43 +0000 (16:08 +0100)] 
curl_easy_pause.3: add multiplexed pause effects

and generally refresh and update. Remove details for ancient versions.

Reviewed-by: Jay Satiro
Closes #6360

4 years agocurl_easy_pause.3: fix man page reference
Jay Satiro [Tue, 22 Dec 2020 21:51:19 +0000 (16:51 -0500)] 
curl_easy_pause.3: fix man page reference

Follow-up to ac9a724 from earlier today.

Ref: https://github.com/curl/curl/pull/6359

4 years agoEXPERIMENTAL: add the Hyper backend to the list
Daniel Stenberg [Tue, 22 Dec 2020 16:17:37 +0000 (17:17 +0100)] 
EXPERIMENTAL: add the Hyper backend to the list

... of current experimental features in curl.

4 years agospeedcheck: exclude paused transfers
Daniel Stenberg [Tue, 22 Dec 2020 08:54:06 +0000 (09:54 +0100)] 
speedcheck: exclude paused transfers

Paused transfers should not be stopped due to slow speed even when
CURLOPT_LOW_SPEED_LIMIT is set. Additionally, the slow speed timer is
now reset when the transfer is unpaused - as otherwise it would easily
just trigger immediately after unpausing.

Reported-by: Harry Sintonen
Fixes #6358
Closes #6359

4 years agoh2: do not wait for RECV on paused transfers
Daniel Stenberg [Tue, 22 Dec 2020 08:09:46 +0000 (09:09 +0100)] 
h2: do not wait for RECV on paused transfers

... as the socket might be readable all the time when paused and thus
causing a busy-loop.

Reported-by: Harry Sintonen
Reviewed-by: Jay Satiro
Fixes #6356
Closes #6357

4 years agoRELEASE-NOTES: synced
Daniel Stenberg [Mon, 21 Dec 2020 22:06:29 +0000 (23:06 +0100)] 
RELEASE-NOTES: synced

4 years agocmdline-opts/gen.pl: return hard on errors
Daniel Stenberg [Mon, 21 Dec 2020 14:30:56 +0000 (15:30 +0100)] 
cmdline-opts/gen.pl: return hard on errors

... as the warnings tend to go unnoticed otherwise!

Closes #6354

4 years agoexamples/libtest: add .checksrc to dist
Daniel Stenberg [Mon, 21 Dec 2020 08:40:25 +0000 (09:40 +0100)] 
examples/libtest: add .checksrc to dist

... so that (auto)builds from tarballs also get the correct instructions.

Fixes #6176
Closes #6353

4 years agotest: verify new --write-out variables
Daniel Stenberg [Sun, 20 Dec 2020 22:00:13 +0000 (23:00 +0100)] 
test: verify new --write-out variables

Extended test 1029 and added 1188

4 years agotest970: adapted to the new internal order of variables
Daniel Stenberg [Mon, 14 Dec 2020 09:09:51 +0000 (10:09 +0100)] 
test970: adapted to the new internal order of variables

4 years agocurl: add variables to --write-out
Daniel Stenberg [Mon, 14 Dec 2020 09:09:51 +0000 (10:09 +0100)] 
curl: add variables to --write-out

In particular, these ones can help a user to create its own error
message when one or transfers fail.

writeout: add 'onerror', 'url', 'urlnum', 'exitcode', 'errormsg'

onerror - lets a user only show the rest on non-zero exit codes

url - the input URL used for this transfer

urlnum - the numerical URL counter (0 indexed) for this transfer

exitcode - the numerical exit code for the transfer

errormsg - obvious

Reported-by: Earnestly on github
Fixes #6199
Closes #6207