curl-curl/lib/vauth
Viktor Szakats 4e051ff550
curlx: limit use of system allocators to the minimum possible
Clone a multibye conversion function into curlx/fopen, and use that
local copy from curlx/fopen functions. Adjust allocators in curlx/fopen
to use curl's in normal builds, and system allocators in TrackMemory
builds to avoid recursion.

This allows to switch curlx/multibyte functions to curl allocators in
all configurations, as they are no longer called by curlx/fopen, and
a recursive call can no longer happen.

After this patch the system allocator is only used in TrackMemory
Windows builds, within curlx `fopen`, `freopen`, `stat` and `open`
functions.

Also:
- test 1, 440, 767: raise allocation limitsto fit the extra allocations
  in Windows Unicode builds.
- replace all uses of `curlx_unicodefree()` macro with `curlx_free()`
  across the codebase.
- curlx/multibyte: delete `curlx_unicodefree()`.
- ldap: join Windows and non-Windows codepaths that became
  identical after moving from `curlx_unicodefree()` to `curlx_free()`.
- vauth: drop a strdup from standard to curl allocator since
  the original allocation is now already done by curl's.
- tool_doswin: drop now superfluous strdup from `FindWin32CACert()`.
- memanalyzer.pm: sync weirdo `calloc` log message with `malloc`'s.

Fixes #19748
Closes #19845
2025-12-05 15:32:59 +01:00
..
cleartext.c krb5: fix detecting channel binding feature 2025-12-01 11:43:20 +01:00
cram.c lib: add a Curl_bufref_uptr() function and use it 2025-12-04 16:17:21 +01:00
digest_sspi.c curlx: limit use of system allocators to the minimum possible 2025-12-05 15:32:59 +01:00
digest.c lib: add a Curl_bufref_uptr() function and use it 2025-12-04 16:17:21 +01:00
digest.h lib: add ability to disable auths individually 2023-09-07 17:45:06 +02:00
gsasl.c lib: add a Curl_bufref_uptr() function and use it 2025-12-04 16:17:21 +01:00
krb5_gssapi.c bufref: rename *memdup() to *memdup0() 2025-12-04 16:49:16 +01:00
krb5_sspi.c bufref: rename *memdup() to *memdup0() 2025-12-04 16:49:16 +01:00
ntlm_sspi.c bufref: rename *memdup() to *memdup0() 2025-12-04 16:49:16 +01:00
ntlm.c bufref: rename *memdup() to *memdup0() 2025-12-04 16:49:16 +01:00
oauth2.c krb5: fix detecting channel binding feature 2025-12-01 11:43:20 +01:00
spnego_gssapi.c lib: delete unused curlx/multibyte.h includes 2025-12-01 18:09:09 +01:00
spnego_sspi.c lib: delete unused curlx/multibyte.h includes 2025-12-01 18:09:09 +01:00
vauth.c curlx: limit use of system allocators to the minimum possible 2025-12-05 15:32:59 +01:00
vauth.h krb5: fix detecting channel binding feature 2025-12-01 11:43:20 +01:00