curl/lib
Robert Moreton 835e4cb1d5
asyn-ares: fix data race warning
- Store the c-ares version during global init.

Prior to this change several threads could write the same data to a
static int variable at the same time. Though in practice it's not a
problem ThreadSanitizer may warn.

Reported-by: Nikita Taranov
Assisted-by: Jay Satiro

Fixes #13065
Closes #13000
2024-03-07 16:47:36 +01:00
..
vauth digest: add check for hashing error 2024-03-07 10:24:27 +01:00
vquic ngtcp2: no recvbuf for stream 2024-03-07 12:49:23 +01:00
vssh misc: Fix typos in docs and lib 2024-03-01 09:59:48 +01:00
vtls rustls: fix two warnings related to number types 2024-03-03 18:22:03 +01:00
.checksrc
.gitattributes
.gitignore
altsvc.c lib: convert Curl_get_line to use dynbuf 2024-02-07 09:22:10 +01:00
altsvc.h
amigaos.c
amigaos.h
arpa_telnet.h lib: apache style infof and trace macros/functions 2023-10-26 17:42:54 +02:00
asyn-ares.c asyn-ares: fix data race warning 2024-03-07 16:47:36 +01:00
asyn-thread.c asyn-thread: use wakeup_close to close the read descriptor 2024-02-01 13:42:48 +01:00
asyn.h
base64.c build: fix builds that disable protocols but not digest auth 2023-12-01 23:26:53 -05:00
bufq.c bufq: writing into a softlimit queue cannot be partial 2024-03-03 17:35:47 +01:00
bufq.h lib: Curl_read/Curl_write clarifications 2024-02-28 12:58:55 +01:00
bufref.c lib: rename Curl_strndup to Curl_memdup0 to avoid misunderstanding 2023-12-08 17:22:33 +01:00
bufref.h
c-hyper.c hyper: implement unpausing via client reader 2024-03-07 15:58:30 +01:00
c-hyper.h lib: send rework 2024-02-27 08:58:10 +01:00
cf-h1-proxy.c lib: further send/upload handling polish 2024-03-04 08:42:56 +01:00
cf-h1-proxy.h
cf-h2-proxy.c build: enable missing OpenSSF-recommended warnings, with fixes 2023-12-16 13:12:37 +00:00
cf-h2-proxy.h
cf-haproxy.c lib: Curl_read/Curl_write clarifications 2024-02-27 14:13:56 +01:00
cf-haproxy.h
cf-https-connect.c build: enable missing OpenSSF-recommended warnings, with fixes 2023-12-16 13:12:37 +00:00
cf-https-connect.h
cf-socket.c ftp: tracing improvements 2024-02-08 23:14:33 +01:00
cf-socket.h build: enable missing OpenSSF-recommended warnings, with fixes 2023-12-16 13:12:37 +00:00
cfilters.c lib: Curl_read/Curl_write clarifications 2024-02-27 14:13:56 +01:00
cfilters.h misc: Fix typos in docs and lib 2024-03-01 09:59:48 +01:00
CMakeLists.txt cmake: option to disable install & drop curlu target when unused 2023-11-10 18:24:14 +00:00
config-amigaos.h build: delete HAVE_STDINT_H and HAVE_INTTYPES_H 2023-11-06 17:20:39 +00:00
config-dos.h build: variadic macro tidy-ups 2023-10-27 00:37:34 +00:00
config-mac.h lib: remove TIME_WITH_SYS_TIME 2023-09-28 22:58:36 +02:00
config-os400.h build: delete unused HAVE_{GSSHEIMDAL,GSSMIT,HEIMDAL} 2023-12-16 13:16:52 +00:00
config-plan9.h build: delete HAVE_STDINT_H and HAVE_INTTYPES_H 2023-11-06 17:20:39 +00:00
config-riscos.h build: delete HAVE_STDINT_H and HAVE_INTTYPES_H 2023-11-06 17:20:39 +00:00
config-win32.h windows: simplify detecting and using system headers 2023-12-16 13:13:44 +00:00
config-win32ce.h windows: simplify detecting and using system headers 2023-12-16 13:13:44 +00:00
conncache.c multi: add xfer_buf to multi handle 2024-02-09 09:43:50 +01:00
conncache.h
connect.c CURLINFO_USED_PROXY: return bool whether the proxy was used 2024-02-22 08:38:53 +01:00
connect.h
content_encoding.c lib: replace readwrite with write_resp 2024-01-13 17:23:42 +01:00
content_encoding.h content_encoding: make Curl_all_content_encodings allocless 2023-11-07 16:35:30 +01:00
cookie.c cookie: if psl fails, reject the cookie 2024-03-04 08:46:59 +01:00
cookie.h
curl_addrinfo.c
curl_addrinfo.h
curl_base64.h
curl_config.h.cmake cmake: add USE_OPENSSL_QUIC support 2024-03-05 17:07:57 +01:00
curl_ctype.h
curl_des.c misc: Fix typos in docs and lib 2024-03-01 09:59:48 +01:00
curl_des.h
curl_endian.c
curl_endian.h
curl_fnmatch.c
curl_fnmatch.h
curl_get_line.c lib: convert Curl_get_line to use dynbuf 2024-02-07 09:22:10 +01:00
curl_get_line.h lib: convert Curl_get_line to use dynbuf 2024-02-07 09:22:10 +01:00
curl_gethostname.c
curl_gethostname.h
curl_gssapi.c
curl_gssapi.h
curl_hmac.h build: fix libssh2 + CURL_DISABLE_DIGEST_AUTH + CURL_DISABLE_AWS 2023-11-15 20:57:49 +00:00
curl_krb5.h
curl_ldap.h
curl_md4.h
curl_md5.h
curl_memory.h windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
curl_memrchr.c
curl_memrchr.h build: delete checks for C89 standard headers 2023-09-26 14:25:10 +00:00
curl_multibyte.c windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
curl_multibyte.h windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
curl_ntlm_core.c openssl: fix building with v3 no-deprecated + add CI test 2023-11-23 02:03:02 +00:00
curl_ntlm_core.h
curl_ntlm_wb.c ntml_wb: fix buffer type typo 2024-02-01 13:04:56 +01:00
curl_ntlm_wb.h
curl_path.c
curl_path.h windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
curl_printf.h curl.h: add CURLE_TOO_LARGE 2023-12-18 10:34:22 +01:00
curl_range.c
curl_range.h
curl_rtmp.c lib: send rework 2024-02-27 08:58:10 +01:00
curl_rtmp.h
curl_sasl.c sasl: make login option string override http auth 2024-01-26 02:58:21 -05:00
curl_sasl.h
curl_setup_once.h windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
curl_setup.h sha512_256: remove the cast macro, minor language/format edits 2024-02-20 17:49:01 +01:00
curl_sha256.h
curl_sha512_256.c sha512_256: add support for GnuTLS and OpenSSL 2024-03-07 10:25:11 +01:00
curl_sha512_256.h SHA-512/256: implement hash algorithm 2024-02-20 11:35:56 +01:00
curl_sspi.c
curl_sspi.h curl_sspi: support more revocation error names in error messages 2023-11-03 03:50:59 -04:00
curl_threads.c mingw: delete support for legacy mingw.org toolchain 2023-09-23 09:12:57 +00:00
curl_threads.h mingw: delete support for legacy mingw.org toolchain 2023-09-23 09:12:57 +00:00
curl_trc.c DoH: add trace configuration 2024-02-20 14:01:59 +01:00
curl_trc.h DoH: add trace configuration 2024-02-20 14:01:59 +01:00
curlx.h
cw-out.c lib: add void *ctx to reader/writer instances 2024-03-06 14:38:12 +01:00
cw-out.h lib: move client writer into own source 2024-02-26 14:25:41 +01:00
dict.c lib: Curl_read/Curl_write clarifications 2024-02-27 14:13:56 +01:00
dict.h
doh.c DoH: add trace configuration 2024-02-20 14:01:59 +01:00
doh.h DoH: add trace configuration 2024-02-20 14:01:59 +01:00
dynbuf.c build: delete/replace clang warning pragmas 2024-01-27 21:19:41 +00:00
dynbuf.h build: enable missing OpenSSF-recommended warnings, with fixes 2023-12-16 13:12:37 +00:00
dynhds.c http2: header conversion tightening 2023-10-21 14:36:51 +02:00
dynhds.h http2: header conversion tightening 2023-10-21 14:36:51 +02:00
easy_lock.h easy_lock: add a pthread_mutex_t fallback 2023-10-12 23:40:08 -04:00
easy.c hyper: implement unpausing via client reader 2024-03-07 15:58:30 +01:00
easygetopt.c curldown: Fix email address in Copyright 2024-02-28 11:28:10 +01:00
easyif.h lib: Curl_read/Curl_write clarifications 2024-02-27 14:13:56 +01:00
easyoptions.c curldown: Fix email address in Copyright 2024-02-28 11:28:10 +01:00
easyoptions.h
escape.c lib: provide and use Curl_hexencode 2023-09-30 11:45:39 +02:00
escape.h lib: provide and use Curl_hexencode 2023-09-30 11:45:39 +02:00
file.c TIMER_STARTTRANSFER: set the same for everyone 2024-03-05 17:06:47 +01:00
file.h
fileinfo.c
fileinfo.h
fopen.c fopen: fix narrowing conversion warning on 32-bit Android 2024-02-27 14:26:22 +01:00
fopen.h
formdata.c build: enable missing OpenSSF-recommended warnings, with fixes 2023-12-16 13:12:37 +00:00
formdata.h
ftp.c lib: add void *ctx to reader/writer instances 2024-03-06 14:38:12 +01:00
ftp.h
ftplistparser.c build: add more picky warnings and fix them 2023-11-21 16:35:42 +00:00
ftplistparser.h
functypes.h windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
getenv.c windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
getinfo.c CURLINFO_USED_PROXY: return bool whether the proxy was used 2024-02-22 08:38:53 +01:00
getinfo.h
gopher.c lib: Curl_read/Curl_write clarifications 2024-02-27 14:13:56 +01:00
gopher.h
hash.c
hash.h
headers.c http: move headers collecting to writer 2024-02-26 09:44:15 +01:00
headers.h http: move headers collecting to writer 2024-02-26 09:44:15 +01:00
hmac.c lib: enable hmac for digest as well 2023-09-20 13:38:42 +02:00
hostasyn.c Revert "urldata: move async resolver state from easy handle to connectdata" 2023-12-15 12:57:35 +01:00
hostip4.c
hostip6.c hostip6: fix DEBUG_ADDRINFO builds 2023-10-28 00:27:20 -04:00
hostip.c misc: Fix typos in docs and lib 2024-03-01 09:59:48 +01:00
hostip.h hostip: show the list of IPs when resolving is done 2023-10-20 23:00:10 +02:00
hostsyn.c
hsts.c lib: convert Curl_get_line to use dynbuf 2024-02-07 09:22:10 +01:00
hsts.h
http1.c http: h1/h2 proxy unification 2023-09-25 20:12:18 +02:00
http1.h http: h1/h2 proxy unification 2023-09-25 20:12:18 +02:00
http2.c http2: push headers better cleanup 2024-03-07 10:12:28 +01:00
http2.h
http_aws_sigv4.c lib: reduce use of strncpy 2023-12-11 23:29:02 +01:00
http_aws_sigv4.h
http_chunks.c lib: add void *ctx to reader/writer instances 2024-03-06 14:38:12 +01:00
http_chunks.h lib: Curl_read/Curl_write clarifications 2024-02-28 12:58:55 +01:00
http_digest.c
http_digest.h
http_negotiate.c
http_negotiate.h
http_ntlm.c
http_ntlm.h
http_proxy.c http_proxy: a blank CURLOPT_USERAGENT should not be used in CONNECT 2024-01-11 08:49:21 +01:00
http_proxy.h http: h1/h2 proxy unification 2023-09-25 20:12:18 +02:00
http.c http: fix dead code in setting post client reader 2024-03-06 14:35:23 +01:00
http.h lib: enhance client reader resume + rewind 2024-03-05 13:26:05 +01:00
idn.c windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
idn.h
if2ip.c
if2ip.h
imap.c mime: add client reader 2024-03-06 00:17:37 +01:00
imap.h
inet_ntop.c inet_ntop: add typecast to silence Coverity 2023-09-27 13:18:22 +02:00
inet_ntop.h
inet_pton.c build: fix some -Wsign-conversion/-Warith-conversion warnings 2023-12-19 12:45:28 +00:00
inet_pton.h windows: delete redundant headers 2023-12-18 14:56:57 +00:00
krb5.c lib: Curl_read/Curl_write clarifications 2024-02-27 14:13:56 +01:00
ldap.c lib: send rework 2024-02-27 08:58:10 +01:00
libcurl.plist.in
libcurl.rc
libcurl.vers.in
llist.c
llist.h
macos.c
macos.h
Makefile.am autotools: avoid passing LDFLAGS twice to libcurl 2023-11-14 19:28:15 +00:00
Makefile.inc lib: send rework 2024-02-27 08:58:10 +01:00
Makefile.mk Makefile.mk: drop Windows support 2023-12-16 13:12:22 +00:00
Makefile.soname
md4.c md4: include strdup.h for the memdup proto 2024-02-05 23:38:12 +01:00
md5.c
memdebug.c build: delete/replace clang warning pragmas 2024-01-27 21:19:41 +00:00
memdebug.h build: enable missing OpenSSF-recommended warnings, with fixes 2023-12-16 13:12:37 +00:00
mime.c lib: add void *ctx to reader/writer instances 2024-03-06 14:38:12 +01:00
mime.h mime: add client reader 2024-03-06 00:17:37 +01:00
mprintf.c misc: Fix typos in docs and lib 2024-03-01 09:59:48 +01:00
mqtt.c lib: Curl_read/Curl_write clarifications 2024-02-27 14:13:56 +01:00
mqtt.h mqtt, remove remaining use of data->state.buffer 2024-01-27 12:42:19 +01:00
multi.c lib: enhance client reader resume + rewind 2024-03-05 13:26:05 +01:00
multihandle.h lib: further send/upload handling polish 2024-03-04 08:42:56 +01:00
multiif.h lib: further send/upload handling polish 2024-03-04 08:42:56 +01:00
netrc.c lib: convert Curl_get_line to use dynbuf 2024-02-07 09:22:10 +01:00
netrc.h
nonblock.c
nonblock.h
noproxy.c build: enable missing OpenSSF-recommended warnings, with fixes 2023-12-16 13:12:37 +00:00
noproxy.h
openldap.c lib: send rework 2024-02-27 08:58:10 +01:00
optiontable.pl curldown: Fix email address in Copyright 2024-02-28 11:28:10 +01:00
parsedate.c
parsedate.h
pingpong.c smpt: fix starttls 2024-03-05 13:30:16 +01:00
pingpong.h lib: send rework 2024-02-27 08:58:10 +01:00
pop3.c lib: send rework 2024-02-27 08:58:10 +01:00
pop3.h
progress.c getinfo: CURLINFO_QUEUE_TIME_T 2023-12-27 09:28:48 +01:00
progress.h getinfo: CURLINFO_QUEUE_TIME_T 2023-12-27 09:28:48 +01:00
psl.c
psl.h
rand.c lib: add debug log outputs for CURLE_BAD_FUNCTION_ARGUMENT 2024-01-08 22:48:24 +01:00
rand.h windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
rename.c windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
rename.h
request.c mime: add client reader 2024-03-06 00:17:37 +01:00
request.h mime: add client reader 2024-03-06 00:17:37 +01:00
rtsp.c mime: add client reader 2024-03-06 00:17:37 +01:00
rtsp.h RTSP: improved RTP parser 2023-10-21 14:38:21 +02:00
select.c windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
select.h
sendf.c hyper: implement unpausing via client reader 2024-03-07 15:58:30 +01:00
sendf.h hyper: implement unpausing via client reader 2024-03-07 15:58:30 +01:00
setopt.c lib: further send/upload handling polish 2024-03-04 08:42:56 +01:00
setopt.h
setup-os400.h
setup-vms.h
setup-win32.h windows: simplify detecting and using system headers 2023-12-16 13:13:44 +00:00
sha256.c
share.c build: fix some -Wsign-conversion/-Warith-conversion warnings 2023-12-19 12:45:28 +00:00
share.h build: delete support bits for obsolete Windows compilers 2023-11-06 22:00:10 +00:00
sigpipe.h build: delete checks for C89 standard headers 2023-09-26 14:25:10 +00:00
slist.c
slist.h
smb.c lib: further send/upload handling polish 2024-03-04 08:42:56 +01:00
smb.h lib: further send/upload handling polish 2024-03-04 08:42:56 +01:00
smtp.c lib: add void *ctx to reader/writer instances 2024-03-06 14:38:12 +01:00
smtp.h lib: further send/upload handling polish 2024-03-04 08:42:56 +01:00
sockaddr.h
socketpair.c windows: delete redundant headers 2023-12-18 14:56:57 +00:00
socketpair.h asyn-thread: use pipe instead of socketpair for IPC when available 2023-10-18 08:23:53 +02:00
socks_gssapi.c misc: Fix typos in docs and lib 2024-03-01 09:59:48 +01:00
socks_sspi.c build: enable missing OpenSSF-recommended warnings, with fixes 2023-12-16 13:12:37 +00:00
socks.c socks: reduce the buffer size to 600 (from 8K) 2024-01-26 16:40:03 +01:00
socks.h
speedcheck.c
speedcheck.h
splay.c
splay.h
strcase.c
strcase.h
strdup.c lib: rename Curl_strndup to Curl_memdup0 to avoid misunderstanding 2023-12-08 17:22:33 +01:00
strdup.h lib: rename Curl_strndup to Curl_memdup0 to avoid misunderstanding 2023-12-08 17:22:33 +01:00
strerror.c strerror: repair get_winsock_error() 2023-12-21 23:17:15 +01:00
strerror.h windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
strtok.c
strtok.h
strtoofft.c lib: initialize output pointers to NULL before calling strto[ff,l,ul] 2024-02-26 17:19:27 +01:00
strtoofft.h
system_win32.c system_win32: fix a function pointer assignment warning 2023-12-28 03:38:44 -05:00
system_win32.h system_win32: fix a function pointer assignment warning 2023-12-28 03:38:44 -05:00
telnet.c lib: Curl_read/Curl_write clarifications 2024-02-27 14:13:56 +01:00
telnet.h
tftp.c lib: further send/upload handling polish 2024-03-04 08:42:56 +01:00
tftp.h setopt: check CURLOPT_TFTP_BLKSIZE range on set 2023-11-22 07:44:05 +01:00
timediff.c windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
timediff.h
timeval.c windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
timeval.h multi: round the timeout up to prevent early wakeups 2023-09-28 09:52:20 +02:00
transfer.c transfer.c: break receive loop in speed limited transfers 2024-03-06 08:07:37 +01:00
transfer.h lib: further send/upload handling polish 2024-03-04 08:42:56 +01:00
url.c lib: further send/upload handling polish 2024-03-04 08:42:56 +01:00
url.h lib: send rework 2024-02-27 08:58:10 +01:00
urlapi-int.h
urlapi.c lib: initialize output pointers to NULL before calling strto[ff,l,ul] 2024-02-26 17:19:27 +01:00
urldata.h lib: enhance client reader resume + rewind 2024-03-05 13:26:05 +01:00
version_win32.c windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
version_win32.h windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
version.c version: allow building with ancient libpsl 2024-02-06 09:50:35 +01:00
warnless.c windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
warnless.h windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
ws.c lib: add void *ctx to reader/writer instances 2024-03-06 14:38:12 +01:00
ws.h websockets: refactor decode chain 2024-01-16 16:43:24 +01:00