curl/lib
Daniel Gustafsson 37f892fb8c 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>
2022-05-11 10:52:56 +02:00
..
vauth lib: remove exclamation marks 2022-04-16 11:55:05 +02:00
vquic quiche: support ca-fallback 2022-05-11 10:49:31 +02:00
vssh url: check SSH config match on connection reuse 2022-05-09 23:13:53 +02:00
vtls x509asn1: mark msnprintf return as unchecked 2022-05-11 10:38:08 +02:00
.checksrc
.gitattributes
.gitignore macos: set .plist version in autoconf 2022-04-20 15:26:13 +02:00
altsvc.c altsvc: fix host name matching for trailing dots 2022-05-09 09:39:15 +02:00
altsvc.h
amigaos.c
amigaos.h
arpa_telnet.h
asyn-ares.c misc: update copyright year ranges 2022-04-25 09:31:09 +02:00
asyn-thread.c
asyn.h
base64.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
bufref.c
bufref.h
c-hyper.c hyper: fix test 357 2022-05-08 23:19:05 +02:00
c-hyper.h
CMakeLists.txt
config-amigaos.h
config-dos.h misc: remove the final watcom references 2022-01-17 08:49:25 +01:00
config-mac.h
config-os400.h msh3: add support for QUIC and HTTP/3 using msh3 2022-04-10 18:23:04 +02:00
config-plan9.h
config-riscos.h
config-win32.h misc: remove the final watcom references 2022-01-17 08:49:25 +01:00
config-win32ce.h misc: remove the final watcom references 2022-01-17 08:49:25 +01:00
conncache.c conncache: remove name arg from Curl_conncache_find_bundle 2022-04-25 16:25:42 +02:00
conncache.h conncache: remove name arg from Curl_conncache_find_bundle 2022-04-25 16:25:42 +02:00
connect.c connect: store "conn_remote_port" in the info struct 2022-04-25 16:24:33 +02:00
connect.h
content_encoding.c
content_encoding.h
cookie.c cookies: make bad_domain() not consider a trailing dot fine 2022-05-09 16:47:28 +02:00
cookie.h
curl_addrinfo.c
curl_addrinfo.h
curl_base64.h lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
curl_config.h.cmake msh3: add support for QUIC and HTTP/3 using msh3 2022-04-10 18:23:04 +02:00
curl_ctype.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
curl_ctype.h lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
curl_des.c misc: update copyright year ranges 2022-03-05 09:41:24 +01:00
curl_des.h misc: update copyright year ranges 2022-03-05 09:41:24 +01:00
curl_endian.c
curl_endian.h
curl_fnmatch.c
curl_fnmatch.h
curl_get_line.c
curl_get_line.h
curl_gethostname.c
curl_gethostname.h
curl_gssapi.c misc: update copyright year ranges 2022-04-25 09:31:09 +02:00
curl_gssapi.h
curl_hmac.h sha256/md5: return errors when init fails 2021-12-13 15:54:16 +01:00
curl_krb5.h
curl_ldap.h
curl_md4.h
curl_md5.h sha256/md5: return errors when init fails 2021-12-13 15:54:16 +01:00
curl_memory.h
curl_memrchr.c
curl_memrchr.h
curl_multibyte.c misc: update copyright year ranges 2022-04-25 09:31:09 +02:00
curl_multibyte.h
curl_ntlm_core.c ntlm: remove unused feature defines 2022-02-15 14:12:41 +01:00
curl_ntlm_core.h ntlm: remove unused feature defines 2022-02-15 14:12:41 +01:00
curl_ntlm_wb.c
curl_ntlm_wb.h
curl_path.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
curl_path.h
curl_printf.h
curl_range.c
curl_range.h
curl_rtmp.c
curl_rtmp.h
curl_sasl.c English: use American spelling consistently 2022-04-05 14:55:47 +02:00
curl_sasl.h urldata: remove conn->bits.user_passwd 2022-02-16 10:28:31 +01:00
curl_setup_once.h
curl_setup.h msh3: add support for QUIC and HTTP/3 using msh3 2022-04-10 18:23:04 +02:00
curl_sha256.h misc: allow curl to build with wolfssl --enable-opensslextra 2022-01-21 23:04:02 +01:00
curl_sspi.c misc: update copyright year range 2021-12-30 14:17:47 +01:00
curl_sspi.h
curl_threads.c
curl_threads.h
curlx.h
dict.c urldata: remove conn->bits.user_passwd 2022-02-16 10:28:31 +01:00
dict.h
doh.c lib: #ifdef on USE_HTTP2 better 2022-04-01 13:45:52 +02:00
doh.h
dotdot.c docs: update IETF links to use datatracker 2022-01-21 23:06:36 +01:00
dotdot.h
dynbuf.c
dynbuf.h
easy.c conn: fix typo 'connnection' -> 'connection' in two function names 2022-04-27 11:50:13 +02:00
easygetopt.c
easyif.h
easyoptions.c
easyoptions.h
escape.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
escape.h lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
file.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
file.h
fileinfo.c
fileinfo.h
formdata.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
formdata.h
ftp.c lib: remove exclamation marks 2022-04-16 11:55:05 +02:00
ftp.h
ftplistparser.c
ftplistparser.h
getenv.c
getinfo.c
getinfo.h
gopher.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
gopher.h
h2h3.c misc: spelling fixes 2022-03-30 10:49:06 +02:00
h2h3.h h2h3: fix compiler warning due to function prototype mismatch 2022-02-14 16:45:14 -05:00
hash.c hash: lazy-alloc the table in Curl_hash_add() 2021-12-10 23:16:43 +01:00
hash.h hash: lazy-alloc the table in Curl_hash_add() 2021-12-10 23:16:43 +01:00
headers.c misc: spelling fixes 2022-03-30 10:49:06 +02:00
headers.h headers.h: make Curl_headers_push() be CURLE_OK when not built 2022-03-24 00:52:34 +01:00
hmac.c English: use American spelling consistently 2022-04-05 14:55:47 +02:00
hostasyn.c
hostip4.c
hostip6.c
hostip.c conn: fix typo 'connnection' -> 'connection' in two function names 2022-04-27 11:50:13 +02:00
hostip.h hash: lazy-alloc the table in Curl_hash_add() 2021-12-10 23:16:43 +01:00
hostsyn.c
hsts.c hsts: ignore trailing dots when comparing hosts names 2022-05-09 12:54:39 +02:00
hsts.h
http2.c lib: remove exclamation marks 2022-04-16 11:55:05 +02:00
http2.h
http_aws_sigv4.c aws-sigv4: fix potentional NULL pointer arithmetic 2022-05-11 10:52:56 +02:00
http_aws_sigv4.h
http_chunks.c header api: add curl_easy_header and curl_easy_nextheader 2022-03-22 08:24:22 +01:00
http_chunks.h
http_digest.c
http_digest.h
http_negotiate.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
http_negotiate.h
http_ntlm.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
http_ntlm.h
http_proxy.c http_proxy/hyper: handle closed connections 2022-05-06 11:01:54 +02:00
http_proxy.h header api: add curl_easy_header and curl_easy_nextheader 2022-03-22 08:24:22 +01:00
http.c http: move Curl_allow_auth_to_host() 2022-04-29 22:56:47 +02:00
http.h openssl: don't leak the SRP credentials in redirects either 2022-04-25 22:34:40 +02:00
idn_win32.c misc: update copyright year ranges 2022-04-25 09:31:09 +02:00
if2ip.c misc: remove unused data when IPv6 is not supported 2022-02-13 12:08:50 +01:00
if2ip.h misc: remove unused data when IPv6 is not supported 2022-02-13 12:08:50 +01:00
imap.c lib: remove exclamation marks 2022-04-16 11:55:05 +02:00
imap.h
inet_ntop.c
inet_ntop.h
inet_pton.c checksrc: detect more kinds of NULL comparisons we avoid 2021-12-27 23:39:26 +01:00
inet_pton.h
krb5.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
ldap.c lib: remove exclamation marks 2022-04-16 11:55:05 +02:00
libcurl.plist.in macos: set .plist version in autoconf 2022-04-20 15:26:13 +02:00
libcurl.rc
libcurl.vers.in
llist.c
llist.h
Makefile.am scripts: move three scripts from lib/ to scripts/ 2022-03-23 15:26:11 +01:00
makefile.amiga
makefile.dj
Makefile.inc timediff.[ch]: add curlx helper functions for timeval conversions 2022-04-17 13:11:27 +02:00
Makefile.m32
md4.c checksrc: detect more kinds of NULL comparisons we avoid 2021-12-27 23:39:26 +01:00
md5.c md5: check md5_init_func return value 2022-01-23 01:56:59 -05:00
memdebug.c
memdebug.h
mime.c lib: remove exclamation marks 2022-04-16 11:55:05 +02:00
mime.h mime: use a define instead of the magic number 24 2022-02-13 11:46:18 +01:00
mprintf.c mprintf: remove strlen calls on empty strings in dprintf_formatf 2022-02-11 23:07:34 +01:00
mqtt.c mqtt: better handling of TCP disconnect mid-message 2022-03-29 08:43:14 +02:00
mqtt.h
multi.c conn: fix typo 'connnection' -> 'connection' in two function names 2022-04-27 11:50:13 +02:00
multihandle.h multi: handle errors returned from socket/timer callbacks 2021-12-06 14:55:52 +01:00
multiif.h conn: fix typo 'connnection' -> 'connection' in two function names 2022-04-27 11:50:13 +02:00
netrc.c
netrc.h
nonblock.c nonblock: restore setsockopt method to curlx_nonblock 2022-03-09 09:13:42 +01:00
nonblock.h
openldap.c urldata: remove conn->bits.user_passwd 2022-02-16 10:28:31 +01:00
optiontable.pl
parsedate.c
parsedate.h
pingpong.c pop3/smtp: return *WEIRD_SERVER_REPLY when not understood 2022-03-29 14:01:53 +02:00
pingpong.h
pop3.c lib: remove exclamation marks 2022-04-16 11:55:05 +02:00
pop3.h
progress.c
progress.h
psl.c
psl.h
quic.h msh3: add support for QUIC and HTTP/3 using msh3 2022-04-10 18:23:04 +02:00
rand.c misc: update copyright year ranges 2022-04-25 09:31:09 +02:00
rand.h
rename.c
rename.h
rtsp.c rtsp: don't let CSeq error override earlier errors 2022-03-18 03:24:37 -04:00
rtsp.h
select.c timediff.[ch]: add curlx helper functions for timeval conversions 2022-04-17 13:11:27 +02:00
select.h TPF: drop support 2022-02-04 08:05:35 +01:00
sendf.c lib: remove exclamation marks 2022-04-16 11:55:05 +02:00
sendf.h header api: add curl_easy_header and curl_easy_nextheader 2022-03-22 08:24:22 +01:00
setopt.c tls: check more TLS details for connection reuse 2022-05-09 23:13:53 +02:00
setopt.h
setup-os400.h
setup-vms.h
setup-win32.h
sha256.c sha256: Fix minimum OpenSSL version 2022-02-17 00:35:23 -05:00
share.c hash: lazy-alloc the table in Curl_hash_add() 2021-12-10 23:16:43 +01:00
share.h
sigpipe.h
slist.c
slist.h
smb.c urldata: remove conn->bits.user_passwd 2022-02-16 10:28:31 +01:00
smb.h
smtp.c lib: remove exclamation marks 2022-04-16 11:55:05 +02:00
smtp.h
sockaddr.h
socketpair.c
socketpair.h
socks_gssapi.c
socks_sspi.c
socks.c lib: remove exclamation marks 2022-04-16 11:55:05 +02:00
socks.h English: use American spelling consistently 2022-04-05 14:55:47 +02:00
speedcheck.c
speedcheck.h
splay.c checksrc: detect more kinds of NULL comparisons we avoid 2021-12-27 23:39:26 +01:00
splay.h
strcase.c url: check sasl additional parameters for connection reuse. 2022-04-25 11:44:05 +02:00
strcase.h url: check sasl additional parameters for connection reuse. 2022-04-25 11:44:05 +02:00
strdup.c
strdup.h
strerror.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
strerror.h
strtok.c
strtok.h
strtoofft.c
strtoofft.h
system_win32.c
system_win32.h
telnet.c lib: remove exclamation marks 2022-04-16 11:55:05 +02:00
telnet.h
tftp.c checkprefix: remove strlen calls 2022-02-21 08:18:59 +01:00
tftp.h
timediff.c timediff.[ch]: add curlx helper functions for timeval conversions 2022-04-17 13:11:27 +02:00
timediff.h timediff.[ch]: add curlx helper functions for timeval conversions 2022-04-17 13:11:27 +02:00
timeval.c
timeval.h misc: update copyright year ranges 2022-04-25 09:31:09 +02:00
transfer.c transfer: redirects to other protocols or ports clear auth 2022-04-25 16:24:33 +02:00
transfer.h misc: remove strlen for Curl_checkheaders + Curl_checkProxyheaders 2022-02-10 08:51:06 +01:00
url.c url: check SSH config match on connection reuse 2022-05-09 23:13:53 +02:00
url.h url: make Curl_disconnect return void 2022-01-20 09:07:30 +01:00
urlapi-int.h
urlapi.c urlapi: reject percent-decoding host name into separator bytes 2022-05-09 12:50:34 +02:00
urldata.h tls: check more TLS details for connection reuse 2022-05-09 23:13:53 +02:00
version_win32.c misc: update copyright year ranges 2022-03-05 09:41:24 +01:00
version_win32.h misc: update copyright year range 2021-12-30 14:17:47 +01:00
version.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
warnless.c misc: update copyright year ranges 2022-04-25 09:31:09 +02:00
warnless.h misc: update copyright year ranges 2022-04-25 09:31:09 +02:00
wildcard.c
wildcard.h