]> git.ipfire.org Git - thirdparty/curl.git/log
thirdparty/curl.git
3 years agomacos9: remove partial support
Daniel Gustafsson [Mon, 16 May 2022 08:10:16 +0000 (10:10 +0200)] 
macos9: remove partial support

The support for compiling on Mac OS 9 hasn't been modified since 2001
and has no active maintainer or packager, so it's time to remove it as
it's incredibly unlikely to work. If a maintainer re-emerges it can be
resurrected from Git history.

Closes: #8836
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
3 years agotest1635: verify --fail-with-body with --retry
Daniel Stenberg [Mon, 16 May 2022 08:04:18 +0000 (10:04 +0200)] 
test1635: verify --fail-with-body with --retry

Almost a dupe of 1634

Closes #8847

3 years agotool_operate: make sure --fail-with-body works with --retry
Daniel Stenberg [Mon, 16 May 2022 08:04:05 +0000 (10:04 +0200)] 
tool_operate: make sure --fail-with-body works with --retry

... in the same way --fail already does.

Reported-by: Jakub Bochenski
Fixes #8845
Closes #8847

3 years agongtcp2: Correct use of ngtcp2 and nghttp3 signed integer types
Tatsuhiro Tsujikawa [Sun, 15 May 2022 03:38:57 +0000 (12:38 +0900)] 
ngtcp2: Correct use of ngtcp2 and nghttp3 signed integer types

Closes #8851

3 years agongtcp2: Fix alert_read_func return value
Tatsuhiro Tsujikawa [Sun, 15 May 2022 03:49:05 +0000 (12:49 +0900)] 
ngtcp2: Fix alert_read_func return value

Closes #8852

3 years agoCurl_parsenetrc: don't access local pwbuf outside of scope
Harry Sintonen [Sat, 14 May 2022 22:58:05 +0000 (01:58 +0300)] 
Curl_parsenetrc: don't access local pwbuf outside of scope

Accessing local variables outside of the scope is forbidden and
depending on the compiler can result in the value being
overwritten. Fixed by moving the pwbuf to be in scope.

Closes #8850

3 years agoRELEASE-NOTES: synced
Daniel Stenberg [Mon, 16 May 2022 07:23:21 +0000 (09:23 +0200)] 
RELEASE-NOTES: synced

and bump curlver to 7.83.2 for now (but likely to become 7.84.0 soon)

3 years agoci: update github actions
Frazer Smith [Sat, 14 May 2022 21:37:59 +0000 (23:37 +0200)] 
ci: update github actions

- bump actions/checkout from 2 to 3
- bump actions/upload-artifact from 1 to 3
- bump github/codeql-actions from 1 to 2
- use version tag for actions/checkout

Closes #8843

3 years agotest1919: verify CURLOPT_XOAUTH2_BEARER leak fix
Daniel Stenberg [Sat, 14 May 2022 16:04:52 +0000 (18:04 +0200)] 
test1919: verify CURLOPT_XOAUTH2_BEARER leak fix

3 years agourl: free old conn better on reuse
Daniel Stenberg [Sat, 14 May 2022 16:04:46 +0000 (18:04 +0200)] 
url: free old conn better on reuse

Make use of conn_free() better and avoid duplicate code.

Reported-by: Andrea Pappacoda
Fixes #8841
Closes #8842

3 years agoFAQ: Clarify Windows double quote usage
Jay Satiro [Mon, 9 May 2022 06:22:39 +0000 (02:22 -0400)] 
FAQ: Clarify Windows double quote usage

- Windows command prompt doesn't use literal quoting via single quotes.

- Windows command prompt inner double quotes are escaped with a
  backslash.

- Windows powershell does use single quotes but curl is not a powershell
  script so the arguments may not be passed on correctly.

- Windows powershell inner double quotes seems can be passed to curl if
  the outer quotes are double quotes and an escape of backslash-backtick
  is used.

Command prompt example:

~~~
getargs -v -d "\"a\""

argv[0]: getargs
argv[1]: -v
argv[2]: -d
argv[3]: "a"
~~~

Ref: https://github.com/curl/curl/issues/8818
Ref: https://gist.github.com/jay/19aba48653bd591cf4b90eb9249a302c

Reported-by: KotlinIsland@users.noreply.github.com
Closes https://github.com/curl/curl/pull/8823

3 years agogithub/workflows/nss: apt update first
Daniel Stenberg [Thu, 12 May 2022 14:46:09 +0000 (16:46 +0200)] 
github/workflows/nss: apt update first

Fix "libnss3-dev_3.49.1-1ubuntu1.6_amd64.deb 404 Not Found"

Closes #8837

3 years agopage-footer: mention exit code zero too
Daniel Stenberg [Thu, 12 May 2022 06:21:08 +0000 (08:21 +0200)] 
page-footer: mention exit code zero too

Success (zero) is also an "exit code" worth mentioning.

Closes #8833

3 years agogssapi: initialize gss_buffer_desc strings
Daniel Gustafsson [Thu, 12 May 2022 12:12:41 +0000 (14:12 +0200)] 
gssapi: initialize gss_buffer_desc strings

Explicitly initialize gss_buffer_desc strings such that a call to
freeing resources will succeed even if no data has been allocated
to it.

Reported-by: Jay Satiro <raysatiro@yahoo.com>
3 years agogssapi: improve handling of errors from gss_display_status
Daniel Gustafsson [Thu, 12 May 2022 12:11:52 +0000 (14:11 +0200)] 
gssapi: improve handling of errors from gss_display_status

In case gss_display_status() returns an error, avoid trying to add
it to the buffer as the message may well be a NULL pointer.

Originally this fix comes from a discussion in issue #8816.

Closes: #8832
Reviewed-by: Jay Satiro <raysatiro@yahoo.com>
3 years agohttp2: always debug print stream id in decimal with %u
steini2000 [Fri, 6 May 2022 14:07:31 +0000 (16:07 +0200)] 
http2: always debug print stream id in decimal with %u

Prior to this change the stream id shown could be hex or decimal which
was inconsistent and confusing.

Closes https://github.com/curl/curl/pull/8808

3 years agourl: remove redundant #ifdefs in allocate_conn() 8835/head
Kamil Dudka [Wed, 11 May 2022 13:51:29 +0000 (15:51 +0200)] 
url: remove redundant #ifdefs in allocate_conn()

No change in behavior intended by this commit.

3 years agotests 266, 116 and 1540: add a small write delay
Fabian Keil [Wed, 11 May 2022 09:14:18 +0000 (11:14 +0200)] 
tests 266, 116 and 1540: add a small write delay

This makes it more likely that the trailer is received
seperately from the last-chunk.

curl doesn't seem to care about this but it makes the tests
more useful when testing external proxies like Privoxy.

3 years agotests 1117,1238,1523: adjust writedelay servercmds
Fabian Keil [Wed, 11 May 2022 09:14:18 +0000 (11:14 +0200)] 
tests 1117,1238,1523: adjust writedelay servercmds

... so the delays are the same now that the unit
is in milliseconds.

3 years agotests/server/sws.c: change the HTTP writedelay unit to milliseconds
Fabian Keil [Wed, 11 May 2022 09:14:18 +0000 (11:14 +0200)] 
tests/server/sws.c: change the HTTP writedelay unit to milliseconds

This allows to use write delays for large responses without
resulting in the test taking an unreasonable amount of time.

In many cases delaying writes by a whole second or more isn't
necessary for the desired effect.

Closes #8827

3 years agoaws-sigv4: fix potentional NULL pointer arithmetic
Daniel Gustafsson [Wed, 11 May 2022 08:52:56 +0000 (10:52 +0200)] 
aws-sigv4: fix potentional NULL pointer arithmetic

We need to check if the strchr() call returns NULL (due to missing
char) before we use the returned value in arithmetic.  There is no
live bug here, but fixing it before it can become for hygiene.

Closes: #8814
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
3 years agoquiche: support ca-fallback
Daniel Stenberg [Tue, 10 May 2022 09:09:47 +0000 (11:09 +0200)] 
quiche: support ca-fallback

Follow-up to b01f3e679f4c1ea3 which added this for ngtcp2/openssl

Removed from KNOWN_BUGS

Fixes #8696
Closes #8830

3 years agox509asn1: mark msnprintf return as unchecked
Daniel Gustafsson [Wed, 11 May 2022 08:38:08 +0000 (10:38 +0200)] 
x509asn1: mark msnprintf return as unchecked

We have lots of unchecked msnprintf calls, and this particular msnprintf
call isn't more interesting than the others, but this one yields a Coverity
warning so let's implicitly silence it. Going over the other invocations
is probably a worthwhile project, but for now let's keep the static
analyzers happy.

Closes: #8831
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
3 years agoRELEASE-NOTES: synced curl-7_83_1
Daniel Stenberg [Wed, 11 May 2022 06:11:15 +0000 (08:11 +0200)] 
RELEASE-NOTES: synced

curl 7.83.1 release

3 years agoTHANKS: added contributors from 7.83.1
Daniel Stenberg [Wed, 11 May 2022 06:11:14 +0000 (08:11 +0200)] 
THANKS: added contributors from 7.83.1

3 years agozuul: fix the ngtcp2-gnutls build
Daniel Stenberg [Tue, 10 May 2022 07:33:02 +0000 (09:33 +0200)] 
zuul: fix the ngtcp2-gnutls build

Add packages and tweak the configure options.

Use the GnuTLS 3.7.4 branch (not main).

Closes #8829

3 years agongtcp2: add ca-fallback support for OpenSSL backend
Tatsuhiro Tsujikawa [Mon, 9 May 2022 12:21:32 +0000 (21:21 +0900)] 
ngtcp2: add ca-fallback support for OpenSSL backend

Closes #8828

3 years agourl: check SSH config match on connection reuse
Daniel Stenberg [Mon, 9 May 2022 21:13:53 +0000 (23:13 +0200)] 
url: check SSH config match on connection reuse

CVE-2022-27782

Reported-by: Harry Sintonen
Bug: https://curl.se/docs/CVE-2022-27782.html
Closes #8825

3 years agotls: check more TLS details for connection reuse
Daniel Stenberg [Mon, 9 May 2022 21:13:53 +0000 (23:13 +0200)] 
tls: check more TLS details for connection reuse

CVE-2022-27782

Reported-by: Harry Sintonen
Bug: https://curl.se/docs/CVE-2022-27782.html
Closes #8825

3 years agocookies: make bad_domain() not consider a trailing dot fine
Daniel Stenberg [Mon, 9 May 2022 14:47:06 +0000 (16:47 +0200)] 
cookies: make bad_domain() not consider a trailing dot fine

The check for a dot in the domain must not consider a single trailing
dot to be fine, as then TLD + trailing dot is fine and curl will accept
setting cookies for it.

CVE-2022-27779

Reported-by: Axel Chong
Bug: https://curl.se/docs/CVE-2022-27779.html
Closes #8820

3 years agotest977: reproduce ability to set cookie on TLD
Daniel Stenberg [Mon, 9 May 2022 14:47:06 +0000 (16:47 +0200)] 
test977: reproduce ability to set cookie on TLD

When PSL is not enabled

3 years agoscripts/contributors.sh: correct the copyright range
Daniel Stenberg [Mon, 9 May 2022 14:41:57 +0000 (16:41 +0200)] 
scripts/contributors.sh: correct the copyright range

3 years agodocs/RELEASE-PROCEDURE.md: refreshed and adjsuted the release dates
Daniel Stenberg [Mon, 9 May 2022 14:25:16 +0000 (16:25 +0200)] 
docs/RELEASE-PROCEDURE.md: refreshed and adjsuted the release dates

3 years agotest379: verify --remove-on-error with --no-clobber
Daniel Stenberg [Mon, 9 May 2022 10:56:30 +0000 (12:56 +0200)] 
test379: verify --remove-on-error with --no-clobber

3 years agopost_per_transfer: remove the updated file name
Daniel Stenberg [Mon, 9 May 2022 10:56:21 +0000 (12:56 +0200)] 
post_per_transfer: remove the updated file name

When --remove-on-error is used with --no-clobber, it might have an
updated file name to remove.

Bug: https://curl.se/docs/CVE-2022-27778.html

CVE-2022-27778

Reported-by: Harry Sintonen
Closes #8824

3 years agohsts: ignore trailing dots when comparing hosts names
Daniel Stenberg [Mon, 9 May 2022 06:13:55 +0000 (08:13 +0200)] 
hsts: ignore trailing dots when comparing hosts names

CVE-2022-30115

Reported-by: Axel Chong
Bug: https://curl.se/docs/CVE-2022-30115.html
Closes #8821

3 years agotest440/441: verify HSTS with trailing dots
Daniel Stenberg [Mon, 9 May 2022 06:13:54 +0000 (08:13 +0200)] 
test440/441: verify HSTS with trailing dots

3 years agolibtest/lib1560: verify the host name percent decode fix
Daniel Stenberg [Mon, 9 May 2022 06:19:38 +0000 (08:19 +0200)] 
libtest/lib1560: verify the host name percent decode fix

3 years agourlapi: reject percent-decoding host name into separator bytes
Daniel Stenberg [Mon, 9 May 2022 06:19:38 +0000 (08:19 +0200)] 
urlapi: reject percent-decoding host name into separator bytes

CVE-2022-27780

Reported-by: Axel Chong
Bug: https://curl.se/docs/CVE-2022-27780.html
Closes #8826

3 years agonss: return error if seemingly stuck in a cert loop
Daniel Stenberg [Mon, 9 May 2022 08:07:15 +0000 (10:07 +0200)] 
nss: return error if seemingly stuck in a cert loop

CVE-2022-27781

Reported-by: Florian Kohnhäuser
Bug: https://curl.se/docs/CVE-2022-27781.html
Closes #8822

3 years agotest412/413: verify alt-svc with trailing dots
Daniel Stenberg [Mon, 9 May 2022 07:39:22 +0000 (09:39 +0200)] 
test412/413: verify alt-svc with trailing dots

3 years agoaltsvc: fix host name matching for trailing dots
Daniel Stenberg [Mon, 9 May 2022 07:39:15 +0000 (09:39 +0200)] 
altsvc: fix host name matching for trailing dots

Closes #8819

3 years agohyper: fix test 357
Garrett Squire [Sat, 7 May 2022 00:34:14 +0000 (17:34 -0700)] 
hyper: fix test 357

This change fixes the hyper API such that PUT requests that receive a
417 response can retry without the Expect header.

Closes #8811

3 years agosectransp: bail out if SSLSetPeerDomainName fails
Harry Sintonen [Fri, 6 May 2022 14:25:19 +0000 (16:25 +0200)] 
sectransp: bail out if SSLSetPeerDomainName fails

Before the code would just warn about SSLSetPeerDomainName() errors.

Closes #8798

3 years agohttp_proxy/hyper: handle closed connections
Daniel Stenberg [Fri, 6 May 2022 08:00:24 +0000 (10:00 +0200)] 
http_proxy/hyper: handle closed connections

Enable test 1021 for hyper builds.

Patched-by: Prithvi MK
Fixes #8700
Closes #8806

3 years agoKNOWN_BUGS: timeout when reusing a http3 connection
Daniel Stenberg [Fri, 6 May 2022 07:20:18 +0000 (09:20 +0200)] 
KNOWN_BUGS: timeout when reusing a http3 connection

Closes #8764

3 years agoKNOWN_BUGS: configure --with-ca-fallback is not supported by h3
Daniel Stenberg [Fri, 6 May 2022 07:15:46 +0000 (09:15 +0200)] 
KNOWN_BUGS: configure --with-ca-fallback is not supported by h3

Closes #8696

3 years agoMakefile: fix "make ca-firefox"
Ryan Schmidt [Thu, 5 May 2022 13:43:52 +0000 (08:43 -0500)] 
Makefile: fix "make ca-firefox"

Closes #8804

3 years agotests: fix markdown formatting in README
Daniel Gustafsson [Thu, 5 May 2022 14:43:38 +0000 (16:43 +0200)] 
tests: fix markdown formatting in README

The asterisk in the abbreviation *NIX (for UNIX/Linux) needs to be
escaped to not mean start of italic formatting. This is consistent
with docs/RELEASE-PROCEDURE.md.

Closes: #8802
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
3 years agoTODO: expand on "Expose tried IP addresses that failed"
Daniel Stenberg [Thu, 5 May 2022 11:56:50 +0000 (13:56 +0200)] 
TODO: expand on "Expose tried IP addresses that failed"

Ref: #8794

3 years agotests/server: declare variable 'reqlogfile' static
Fabian Keil [Thu, 5 May 2022 09:53:08 +0000 (11:53 +0200)] 
tests/server: declare variable 'reqlogfile' static

Silences the warning:

     CC       socksd-socksd.o
   socksd.c:143:13: warning: no previous extern declaration for
    non-static variable 'reqlogfile' [-Wmissing-variable-declarations]
   const char *reqlogfile = DEFAULT_REQFILE;
               ^
   socksd.c:143:7: note: declare 'static' if the variable is not
    intended to be used outside of this translation unit
   const char *reqlogfile = DEFAULT_REQFILE;
         ^
   1 warning generated.

... when compiling with clang 13.

Closes: #8799
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
3 years agoHTTP-COOKIES: add missing CURLOPT_COOKIESESSION
Daniel Gustafsson [Thu, 5 May 2022 09:51:07 +0000 (11:51 +0200)] 
HTTP-COOKIES: add missing CURLOPT_COOKIESESSION

Commit 980a47b42 added support for ignoring session cookies, but it
was never added to the documentation.

Closes: #8795
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
3 years agodocs/THANKS: remove name duplicate
Daniel Stenberg [Thu, 5 May 2022 08:25:56 +0000 (10:25 +0200)] 
docs/THANKS: remove name duplicate

3 years ago.mailmap: update
Philip H [Thu, 5 May 2022 08:03:33 +0000 (10:03 +0200)] 
.mailmap: update

Closes #8800

3 years agombedtls: fix some error messages
Jay Satiro [Thu, 5 May 2022 07:13:24 +0000 (03:13 -0400)] 
mbedtls: fix some error messages

Prior to this change some of the error messages misidentified the
function that failed.

3 years agoRELEASE-NOTES: synced
Daniel Stenberg [Thu, 5 May 2022 06:48:17 +0000 (08:48 +0200)] 
RELEASE-NOTES: synced

3 years agox509asn1: make do_pubkey handle EC public keys
Sergey Markelov [Thu, 5 May 2022 06:44:21 +0000 (08:44 +0200)] 
x509asn1: make do_pubkey handle EC public keys

Closes #8757

3 years agombedtls: bail out if rng init fails
Harry Sintonen [Wed, 4 May 2022 23:23:16 +0000 (02:23 +0300)] 
mbedtls: bail out if rng init fails

There was a failf() call but no actual error return.

Closes #8796

3 years agourlapi: address (harmless) UndefinedBehavior sanitizer warning
Sergey Markelov [Thu, 5 May 2022 00:22:19 +0000 (17:22 -0700)] 
urlapi: address (harmless) UndefinedBehavior sanitizer warning

`while(i--)` causes runtime error: unsigned integer overflow: 0 - 1
cannot be represented in type 'size_t' (aka 'unsigned long')

Closes #8797

3 years agotest{898,974,976}: add 'HTTP proxy' keywords
Fabian Keil [Mon, 25 Apr 2022 12:08:15 +0000 (14:08 +0200)] 
test{898,974,976}: add 'HTTP proxy' keywords

... so the tests can be automatically skipped when
testing external HTTP proxies like Privoxy.

Closes #8791

3 years agogskit_connect_step1: fixed bogus setsockopt calls
Harry Sintonen [Wed, 4 May 2022 21:33:17 +0000 (23:33 +0200)] 
gskit_connect_step1: fixed bogus setsockopt calls

setsockopt takes a reference to value, not value. With the current
code this just leads to -1 return value with errno EFAULT.

Closes #8793

3 years agoCURLOPT_SSH_AUTH_TYPES.3: fix the default
Daniel Stenberg [Wed, 4 May 2022 21:31:24 +0000 (23:31 +0200)] 
CURLOPT_SSH_AUTH_TYPES.3: fix the default

The default is all possible methods.

Closes #8792

3 years agoCURLOPT_DOH_URL.3: mention the known bug
Daniel Stenberg [Wed, 4 May 2022 12:44:14 +0000 (14:44 +0200)] 
CURLOPT_DOH_URL.3: mention the known bug

It is mostly duplicating info from KNOWN_BUGS but make it easier to find
for users of this option.

Closes #8790

3 years agoCURLOPT_HSTS*FUNCTION.3: document the involved structs as well
Daniel Stenberg [Tue, 3 May 2022 11:49:43 +0000 (13:49 +0200)] 
CURLOPT_HSTS*FUNCTION.3: document the involved structs as well

Reviewed-By: Daniel Gustafsson
Closes #8788

3 years agodocs/SECURITY-PROCESS.md: "Visible command line arguments"
Daniel Stenberg [Tue, 3 May 2022 11:37:04 +0000 (13:37 +0200)] 
docs/SECURITY-PROCESS.md: "Visible command line arguments"

3 years agoSECURITY-PROCESS: mention "URL inconsistencies"
Daniel Stenberg [Tue, 3 May 2022 06:50:10 +0000 (08:50 +0200)] 
SECURITY-PROCESS: mention "URL inconsistencies"

... as common problems that are *not* vulns.

3 years agocontributors: strip off final comma
Daniel Gustafsson [Mon, 2 May 2022 20:45:09 +0000 (22:45 +0200)] 
contributors: strip off final comma

The final row of contributors should not end with a comma as it's the
end of the list.

Closes: #8785
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
3 years agomisc: use "autoreconf -fi" instead buildconf
Philip H [Mon, 2 May 2022 15:52:16 +0000 (17:52 +0200)] 
misc: use "autoreconf -fi" instead buildconf

Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Closes #8777

3 years agocirrus: Use pip for Python packages on FreeBSD
Philip H [Mon, 2 May 2022 12:39:33 +0000 (14:39 +0200)] 
cirrus: Use pip for Python packages on FreeBSD

Using pip instead of easy_install is more in line with how other
CI images are being maintained.

Closes: #8783
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
3 years agocirrus: Update to FreeBSD 12.3
Philip H [Mon, 2 May 2022 12:38:45 +0000 (14:38 +0200)] 
cirrus: Update to FreeBSD 12.3

Closes: #8783
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
3 years agotool_getparam: simplify conditional statement
Daniel Gustafsson [Mon, 2 May 2022 12:04:59 +0000 (14:04 +0200)] 
tool_getparam: simplify conditional statement

param_place cannot be NULL here since we immediately efter this block
perform arithmetic on it (and use it in order to get here) so there is
little reason to check.

Closes: #8786
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
3 years agoRELEASE-NOTES: synced
Daniel Gustafsson [Sun, 1 May 2022 21:06:53 +0000 (23:06 +0200)] 
RELEASE-NOTES: synced

3 years agogskit: remove unused function set_callback
Daniel Gustafsson [Sun, 1 May 2022 20:59:25 +0000 (22:59 +0200)] 
gskit: remove unused function set_callback

This function has been unused since the initial commit of the GSKit
backend in 0eba02fd4.  The motivation for the code was getting the
whole certificate chain: the only place where the latter is available
is as a callback parameter.  Unfortunately it is not possible to pass
a user pointer to this callback, which precludes the possibility to
associate the cert chain with a data/conn structure.

For further information, search for pgsk_cert_validation_callback on:
https://www.ibm.com/docs/api/v1/content/ssw_ibm_i_71/apis/gsk_attribute_set_callback.htm

As the upstream library never added a parameter like that to the API,
we give up the wait and remove the dead code.

Closes: #8782
Reviewed-by: Patrick Monnerat <patrick@monnerat.net>
3 years agocurl: free resource in error path
Daniel Gustafsson [Sat, 30 Apr 2022 19:25:15 +0000 (21:25 +0200)] 
curl: free resource in error path

If the new filename cannot be generated due to memory pressure, free
the allocated aname on the way out to avoid a small leak.

Closes: #8770
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
3 years agocurl: guard against size_t wraparound in no-clobber code
Daniel Gustafsson [Sat, 30 Apr 2022 19:17:40 +0000 (21:17 +0200)] 
curl: guard against size_t wraparound in no-clobber code

When generating the new filename, make sure we aren't overflowing the
size_t limit when calculating the new length. This is mostly academic
but good code hygeine nonetheless.

Closes: #8771
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
3 years agogha: build msh3
Daniel Stenberg [Sat, 30 Apr 2022 09:33:00 +0000 (11:33 +0200)] 
gha: build msh3

Closes #8779

3 years agoscripts/cijobs.pl: try "current branch" first then "master"
Daniel Stenberg [Sat, 30 Apr 2022 09:33:00 +0000 (11:33 +0200)] 
scripts/cijobs.pl: try "current branch" first then "master"

3 years agomsh3: get msh3 version from MsH3Version
Yusuke Nakamura [Sat, 30 Apr 2022 08:51:22 +0000 (10:51 +0200)] 
msh3: get msh3 version from MsH3Version

Closes #8762

3 years agomsh3: psss remote_port to MsH3ConnectionOpen
Yusuke Nakamura [Sat, 30 Apr 2022 08:51:09 +0000 (10:51 +0200)] 
msh3: psss remote_port to MsH3ConnectionOpen

MsH3 supported additional "Port" parameter to connect not hosted on
443 port QUIC website.

* https://github.com/nibanks/msh3/releases/tag/v0.3.0
* https://github.com/nibanks/msh3/pull/37

Closes #8762

3 years agoopenssl: define HAVE_SSL_CTX_SET_EC_CURVES for libressl
Christian Weisgerber [Fri, 29 Apr 2022 21:02:45 +0000 (23:02 +0200)] 
openssl: define HAVE_SSL_CTX_SET_EC_CURVES for libressl

SSL_CTX_set1_curves_list() has been available since LibreSSL 2.5.3,
released five years ago.

Bug: https://curl.se/mail/lib-2022-04/0059.html
Closes #8773

3 years agohttp: move Curl_allow_auth_to_host()
Daniel Stenberg [Fri, 29 Apr 2022 20:56:47 +0000 (22:56 +0200)] 
http: move Curl_allow_auth_to_host()

It was mistakenly put within the CURL_DISABLE_HTTP_AUTH #ifdef

Reported-by: Michael Olbrich
Fixes #8772
Closes #8775

3 years agomsh3: print boolean value as text representation
Daniel Gustafsson [Fri, 29 Apr 2022 09:40:25 +0000 (11:40 +0200)] 
msh3: print boolean value as text representation

Print the boolean value as its string representation instead of with
%hhu which isn't a format we typically use.

Closes: #8763
Reviewed-by: Nick Banks <nibanks@microsoft.com>
3 years agodata/test376: set a proper name
Daniel Stenberg [Fri, 29 Apr 2022 07:50:33 +0000 (09:50 +0200)] 
data/test376: set a proper name

3 years agoGHA/mbedtls: enabled nghttp2 in the build
Daniel Stenberg [Thu, 28 Apr 2022 15:12:27 +0000 (17:12 +0200)] 
GHA/mbedtls: enabled nghttp2 in the build

Closes #8767

3 years agombedtls: fix compile when h2-enabled
Daniel Stenberg [Thu, 28 Apr 2022 15:11:50 +0000 (17:11 +0200)] 
mbedtls: fix compile when h2-enabled

Fixes #8766
Reported-by: LigH-de on github
Closes #8768

3 years agoRELEASE-NOTES: synced
Daniel Stenberg [Thu, 28 Apr 2022 07:51:26 +0000 (09:51 +0200)] 
RELEASE-NOTES: synced

bumped curlver to 7.83.1-dev

3 years agoSECURITY-PROCESS: extended
Daniel Stenberg [Wed, 27 Apr 2022 13:34:10 +0000 (15:34 +0200)] 
SECURITY-PROCESS: extended

Also clarify BUG-BOUNTY.md with IBB details.

Closes #8754

3 years agoconn: fix typo 'connnection' -> 'connection' in two function names
Adam Rosenfield [Wed, 27 Apr 2022 04:04:33 +0000 (00:04 -0400)] 
conn: fix typo 'connnection' -> 'connection' in two function names

Closes #8759

3 years agoRELEASE-NOTES: synced curl-7_83_0
Daniel Stenberg [Wed, 27 Apr 2022 06:11:01 +0000 (08:11 +0200)] 
RELEASE-NOTES: synced

The 7.83.0 release

3 years agodocs/THANKS: contributors from 7.83.0
Daniel Stenberg [Wed, 27 Apr 2022 06:11:01 +0000 (08:11 +0200)] 
docs/THANKS: contributors from 7.83.0

3 years agotest 898/974/976: require proxy to run
Daniel Stenberg [Tue, 26 Apr 2022 21:54:48 +0000 (23:54 +0200)] 
test 898/974/976: require proxy to run

Fixes #8755
Reported-by: Marc Hörsken
Closes #8756

3 years agognutls: don't leak the SRP credentials in redirects
Daniel Stenberg [Tue, 26 Apr 2022 05:46:19 +0000 (07:46 +0200)] 
gnutls: don't leak the SRP credentials in redirects

Follow-up to 620ea21410030 and 139a54ed0a172a

Reported-by: Harry Sintonen
Closes #8752

3 years agoCURLOPT*TLSAUTH: they only work with OpenSSL or GnuTLS
Daniel Stenberg [Mon, 25 Apr 2022 21:31:22 +0000 (23:31 +0200)] 
CURLOPT*TLSAUTH: they only work with OpenSSL or GnuTLS

Closes #8753

3 years agoopenssl: don't leak the SRP credentials in redirects either
Daniel Stenberg [Mon, 25 Apr 2022 15:59:15 +0000 (17:59 +0200)] 
openssl: don't leak the SRP credentials in redirects either

Follow-up to 620ea21410030

Reported-by: Harry Sintonen
Closes #8751

3 years agohyper: fix tests 580 and 581 for hyper
Liam Warfield [Thu, 14 Apr 2022 04:36:21 +0000 (22:36 -0600)] 
hyper: fix tests 580 and 581 for hyper

Hyper now has the ability to preserve header order. This commit adds a
few lines setting the connection options for this feature.

Related to issue #8617
Closes #8707

3 years agoconncache: remove name arg from Curl_conncache_find_bundle
Daniel Stenberg [Mon, 25 Apr 2022 14:25:42 +0000 (16:25 +0200)] 
conncache: remove name arg from Curl_conncache_find_bundle

To simplify, and also since the returned name is not the full actual
name used for the check. The port number and zone id is also involved,
so just showing the name is misleading.

Closes #8750

3 years agotests: verify the fix for CVE-2022-27774
Daniel Stenberg [Mon, 25 Apr 2022 14:24:33 +0000 (16:24 +0200)] 
tests: verify the fix for CVE-2022-27774

 - Test 973 redirects from HTTP to FTP, clear auth
 - Test 974 redirects from HTTP to HTTP different port, clear auth
 - Test 975 redirects from HTTP to FTP, permitted to keep auth
 - Test 976 redirects from HTTP to HTTP different port, permitted to keep
   auth

3 years agotransfer: redirects to other protocols or ports clear auth
Daniel Stenberg [Mon, 25 Apr 2022 14:24:33 +0000 (16:24 +0200)] 
transfer: redirects to other protocols or ports clear auth

... unless explicitly permitted.

Bug: https://curl.se/docs/CVE-2022-27774.html
Reported-by: Harry Sintonen
Closes #8748

3 years agoconnect: store "conn_remote_port" in the info struct
Daniel Stenberg [Mon, 25 Apr 2022 14:24:33 +0000 (16:24 +0200)] 
connect: store "conn_remote_port" in the info struct

To make it available after the connection ended.

3 years agocookie.d: clarify when cookies are always sent
Daniel Stenberg [Mon, 25 Apr 2022 11:05:47 +0000 (13:05 +0200)] 
cookie.d: clarify when cookies are always sent