curl-curl/tests/server
Viktor Szakats 8afb623bdd
windows: drop redundant curl_wcsdup_callback callback
This callback was permanently mapped to libcurl's internal
`Curl_wcsdup()`, which always uses the customizable malloc for
allocation, thus making a custom mapping redundant anyway.

To simplify, drop the callback and map `_tcsdup()` in Unicode mode
directly to `Curl_wcsdup()`.

Also fixes:
- `curl_global_init()` which, before this patch, (re)initialized its
  mapping to `_wcsdup()`, returning buffers potentially incompatible
  with a custom allocator.
  Bug: https://github.com/curl/curl/pull/17840#issuecomment-3044361245
  Bug: https://github.com/curl/curl/pull/7540#issuecomment-2380995349
  Co-reported-by: Luca Kellermann

Follow-up to 76e047fc27 #7540
Assisted-by: Jay Satiro

Closes #17843
2025-07-08 13:33:38 +02:00
..
.checksrc checksrc: reduce exceptions, apply again to curlx 2025-06-27 17:33:35 +02:00
.gitignore tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
CMakeLists.txt tests/unit: hook up unitprotos to the units-clang-tidy target 2025-07-03 23:49:25 +02:00
dnsd.c tests/server: de-dupe/merge three sockdaemon() clones into one 2025-06-23 17:02:43 +02:00
first.c tests: make individual test sources compile cleanly 2025-06-22 15:58:15 +02:00
first.h tests/server: de-dupe/merge three sockdaemon() clones into one 2025-06-23 17:02:43 +02:00
getpart.c tests/server: move memory init to memptr.c 2025-06-25 01:37:56 +02:00
Makefile.am tests: fix BUNDLE variable references in Makefile.am 2025-06-26 10:55:47 +02:00
Makefile.inc build: split .c and .h file lists in tests 2025-06-26 10:20:41 +02:00
memptr.c windows: drop redundant curl_wcsdup_callback callback 2025-07-08 13:33:38 +02:00
mqttd.c tests/server: de-dupe/merge three sockdaemon() clones into one 2025-06-23 17:02:43 +02:00
resolve.c tests: make individual test sources compile cleanly 2025-06-22 15:58:15 +02:00
rtspd.c tests/server: de-dupe/merge three sockdaemon() clones into one 2025-06-23 17:02:43 +02:00
sockfilt.c tests/server: de-dupe/merge three sockdaemon() clones into one 2025-06-23 17:02:43 +02:00
socksd.c tests/server: de-dupe/merge three sockdaemon() clones into one 2025-06-23 17:02:43 +02:00
sws.c tests/server: de-dupe/merge three sockdaemon() clones into one 2025-06-23 17:02:43 +02:00
tftpd.c tests/server: de-dupe/merge three sockdaemon() clones into one 2025-06-23 17:02:43 +02:00
util.c tests/server: de-dupe/merge three sockdaemon() clones into one 2025-06-23 17:02:43 +02:00