build: stop overriding standard memory allocation functions

Before this patch curl used the C preprocessor to override standard
memory allocation symbols: malloc, calloc, strdup, realloc, free.
The goal of these is to replace them with curl's debug wrappers in
`CURLDEBUG` builds, another was to replace them with the wrappers
calling user-defined allocators in libcurl. This solution needed a bunch
of workarounds to avoid breaking external headers: it relied on include
order to do the overriding last. For "unity" builds it needed to reset
overrides before external includes. Also in test apps, which are always
built as single source files. It also needed the `(symbol)` trick
to avoid overrides in some places. This would still not fix cases where
the standard symbols were macros. It was also fragile and difficult
to figure out which was the actual function behind an alloc or free call
in a specific piece of code. This in turn caused bugs where the wrong
allocator was accidentally called.

To avoid these problems, this patch replaces this solution with
`curlx_`-prefixed allocator macros, and mapping them _once_ to either
the libcurl wrappers, the debug wrappers or the standard ones, matching
the rest of the code in libtests.

This concludes the long journey to avoid redefining standard functions
in the curl codebase.

Note: I did not update `packages/OS400/*.c` sources. They did not
`#include` `curl_setup.h`, `curl_memory.h` or `memdebug.h`, meaning
the overrides were never applied to them. This may or may not have been
correct. For now I suppressed the direct use of standard allocators
via a local `.checksrc`. Probably they (except for `curlcl.c`) should be
updated to include `curl_setup.h` and use the `curlx_` macros.

This patch changes mappings in two places:
- `lib/curl_threads.c` in libtests: Before this patch it mapped to
  libcurl allocators. After, it maps to standard allocators, like
  the rest of libtests code.
- `units`: before this patch it mapped to standard allocators. After, it
  maps to libcurl allocators.

Also:
- drop all position-dependent `curl_memory.h` and `memdebug.h` includes,
  and delete the now unnecessary headers.
- rename `Curl_tcsdup` macro to `curlx_tcsdup` and define like the other
  allocators.
- map `curlx_strdup()` to `_strdup()` on Windows (was: `strdup()`).
  To fix warnings silenced via `_CRT_NONSTDC_NO_DEPRECATE`.
- multibyte: map `curlx_convert_*()` to `_strdup()` on Windows
  (was: `strdup()`).
- src: do not reuse the `strdup` name for the local replacement.
- lib509: call `_strdup()` on Windows (was: `strdup()`).
- test1132: delete test obsoleted by this patch.
- CHECKSRC.md: update text for `SNPRINTF`.
- checksrc: ban standard allocator symbols.

Follow-up to b12da22db1 #18866
Follow-up to db98daab05 #18844
Follow-up to 4deea9396b #18814
Follow-up to 9678ff5b1b #18776
Follow-up to 10bac43b87 #18774
Follow-up to 20142f5d06 #18634
Follow-up to bf7375ecc5 #18503
Follow-up to 9863599d69 #18502
Follow-up to 3bb5e58c10 #17827

Closes #19626
This commit is contained in:
Viktor Szakats 2025-10-08 02:33:19 +02:00
parent bfc3d131b6
commit 193cb00ce9
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
471 changed files with 1456 additions and 2785 deletions

View file

@ -25,7 +25,6 @@
# scripts used in test cases
TESTSCRIPTS = \
test1119.pl \
test1132.pl \
test1135.pl \
test1139.pl \
test1140.pl \

View file

@ -152,7 +152,7 @@ test1093 test1094 test1095 test1096 test1097 test1098 test1099 test1100 \
test1101 test1102 test1103 test1104 test1105 test1106 test1107 test1108 \
test1109 test1110 test1111 test1112 test1113 test1114 test1115 test1116 \
test1117 test1118 test1119 test1120 test1121 test1122 test1123 test1124 \
test1125 test1126 test1127 test1128 test1129 test1130 test1131 test1132 \
test1125 test1126 test1127 test1128 test1129 test1130 test1131 \
test1133 test1134 test1135 test1136 test1137 test1138 test1139 test1140 \
test1141 test1142 test1143 test1144 test1145 test1146 test1147 test1148 \
test1149 test1150 test1151 test1152 test1153 test1154 test1155 test1156 \

View file

@ -1,21 +0,0 @@
<testcase>
<info>
<keywords>
source analysis
memory-includes
</keywords>
</info>
#
# Client-side
<client>
<name>
Verify memory #include files in libcurl's C source files
</name>
<command type="perl">
%SRCDIR/test1132.pl %SRCDIR/../lib
</command>
</client>
</testcase>

View file

@ -26,7 +26,6 @@
#include "first.h"
#include "testtrace.h"
#include "memdebug.h"
static void usage_h2_pausing(const char *msg)
{

View file

@ -24,7 +24,6 @@
#include "first.h"
#include "testtrace.h"
#include "memdebug.h"
static FILE *out_download = NULL;

View file

@ -24,7 +24,6 @@
#include "first.h"
#include "testtrace.h"
#include "memdebug.h"
static size_t write_h2_upg_extreme_cb(char *ptr, size_t size, size_t nmemb,
void *opaque)

View file

@ -25,8 +25,6 @@
#include "testtrace.h"
#include "curl_mem_undef.h"
#if defined(USE_QUICHE) || defined(USE_OPENSSL)
#include <openssl/ssl.h>
#endif
@ -45,8 +43,6 @@
#include <rustls.h>
#endif
#include "memdebug.h"
static int verbose_d = 1;
struct transfer_d {
@ -346,8 +342,8 @@ static CURLcode test_cli_hx_download(const char *URL)
pause_offset = (size_t)num;
break;
case 'r':
free(resolve);
resolve = strdup(coptarg);
curlx_free(resolve);
resolve = curlx_strdup(coptarg);
break;
case 'T':
if(!curlx_str_number(&opt, &num, LONG_MAX))
@ -407,7 +403,7 @@ static CURLcode test_cli_hx_download(const char *URL)
curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_PSL);
curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_HSTS);
transfer_d = calloc(transfer_count_d, sizeof(*transfer_d));
transfer_d = curlx_calloc(transfer_count_d, sizeof(*transfer_d));
if(!transfer_d) {
curl_mfprintf(stderr, "error allocating transfer structs\n");
res = (CURLcode)1;
@ -559,7 +555,7 @@ cleanup:
else /* on success we expect ssl to have been checked */
assert(t->checked_ssl);
}
free(transfer_d);
curlx_free(transfer_d);
}
curl_share_cleanup(share);
@ -569,7 +565,7 @@ cleanup:
optcleanup:
free(resolve);
curlx_free(resolve);
return res;
}

View file

@ -24,7 +24,6 @@
#include "first.h"
#include "testtrace.h"
#include "memdebug.h"
static int verbose_u = 1;
@ -358,7 +357,7 @@ static CURLcode test_cli_hx_upload(const char *URL)
curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_PSL);
curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_HSTS);
transfer_u = calloc(transfer_count_u, sizeof(*transfer_u));
transfer_u = curlx_calloc(transfer_count_u, sizeof(*transfer_u));
if(!transfer_u) {
curl_mfprintf(stderr, "error allocating transfer structs\n");
res = (CURLcode)1;
@ -539,7 +538,7 @@ cleanup:
curl_mime_free(t->mime);
}
}
free(transfer_u);
curlx_free(transfer_u);
}
curl_share_cleanup(share);

View file

@ -24,7 +24,6 @@
#include "first.h"
#include "testtrace.h"
#include "memdebug.h"
static int tse_found_tls_session = FALSE;

View file

@ -26,7 +26,6 @@
#include "first.h"
#include "testtrace.h"
#include "memdebug.h"
static size_t total_read = 0;

View file

@ -24,7 +24,6 @@
#include "first.h"
#include "testtrace.h"
#include "memdebug.h"
#ifndef CURL_DISABLE_WEBSOCKETS
@ -83,8 +82,8 @@ static CURLcode test_ws_data_m2_echo(const char *url,
size_t i, scount = count, rcount = count;
int rblock, sblock;
send_buf = calloc(1, plen_max + 1);
recv_buf = calloc(1, plen_max + 1);
send_buf = curlx_calloc(1, plen_max + 1);
recv_buf = curlx_calloc(1, plen_max + 1);
if(!send_buf || !recv_buf) {
r = CURLE_OUT_OF_MEMORY;
goto out;
@ -184,8 +183,8 @@ out:
ws_close(curl);
curl_easy_cleanup(curl);
}
free(send_buf);
free(recv_buf);
curlx_free(send_buf);
curlx_free(recv_buf);
return r;
}
@ -294,8 +293,8 @@ static CURLcode test_ws_data_m1_echo(const char *url,
curl_mfprintf(stderr, "test_ws_data_m1_echo(min=%zu, max=%zu)\n",
plen_min, plen_max);
memset(&m1_ctx, 0, sizeof(m1_ctx));
m1_ctx.send_buf = calloc(1, plen_max + 1);
m1_ctx.recv_buf = calloc(1, plen_max + 1);
m1_ctx.send_buf = curlx_calloc(1, plen_max + 1);
m1_ctx.recv_buf = curlx_calloc(1, plen_max + 1);
if(!m1_ctx.send_buf || !m1_ctx.recv_buf) {
r = CURLE_OUT_OF_MEMORY;
goto out;
@ -389,8 +388,8 @@ out:
if(m1_ctx.curl) {
curl_easy_cleanup(m1_ctx.curl);
}
free(m1_ctx.send_buf);
free(m1_ctx.recv_buf);
curlx_free(m1_ctx.send_buf);
curlx_free(m1_ctx.recv_buf);
return r;
}

View file

@ -24,7 +24,6 @@
#include "first.h"
#include "testtrace.h"
#include "memdebug.h"
#ifndef CURL_DISABLE_WEBSOCKETS

View file

@ -27,8 +27,6 @@
#include <locale.h> /* for setlocale() */
#endif
#include "memdebug.h"
int select_wrapper(int nfds, fd_set *rd, fd_set *wr, fd_set *exc,
struct timeval *tv)
{

View file

@ -34,8 +34,6 @@
*/
#include "memdebug.h"
#define F_RESUME (1 << 0) /* resume/range. */
#define F_HTTP416 (1 << 1) /* Server returns http code 416. */
#define F_FAIL (1 << 2) /* Fail on error. */

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
struct t1485_transfer_status {
CURL *curl;
curl_off_t out_len;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1500(const char *URL)
{
CURL *curl = NULL;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1501(const char *URL)
{
static const long HANG_TIMEOUT = 30 * 1000;

View file

@ -31,8 +31,6 @@
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1502(const char *URL)
{
CURL *curl = NULL;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1506(const char *URL)
{
CURLcode res = CURLE_OK;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static size_t t1507_read_cb(char *ptr, size_t size, size_t nmemb, void *userp)
{
(void)ptr;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1508(const char *URL)
{
CURLcode res = CURLE_OK;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static size_t realHeaderSize = 0;
static size_t WriteOutput(char *ptr, size_t size, size_t nmemb, void *stream)

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1510(const char *URL)
{
static const int NUM_URLS = 4;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1511(const char *URL)
{
long unmet;

View file

@ -30,8 +30,6 @@
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1512(const char *URL)
{
CURLcode res = CURLE_OK;

View file

@ -30,8 +30,6 @@
#include "first.h"
#include "memdebug.h"
static int progressKiller(void *arg,
double dltotal,
double dlnow,

View file

@ -28,8 +28,6 @@
#include "first.h"
#include "memdebug.h"
struct t1514_WriteThis {
char *readptr;
size_t sizeleft;

View file

@ -31,7 +31,6 @@
#include "first.h"
#include "testtrace.h"
#include "memdebug.h"
#define DNS_TIMEOUT 1L

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
struct t1517_WriteThis {
const char *readptr;
size_t sizeleft;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
/* Test inspired by github issue 3340 */
static size_t t1518_write_cb(char *buffer, size_t size, size_t nitems,

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
struct upload_status {
int lines_read;
};

View file

@ -26,7 +26,6 @@
/* test case and code based on https://github.com/curl/curl/issues/2847 */
#include "testtrace.h"
#include "memdebug.h"
static int sockopt_callback(void *clientp, curl_socket_t curlfd,
curlsocktype purpose)

View file

@ -25,8 +25,6 @@
/* test case and code based on https://github.com/curl/curl/issues/3927 */
#include "memdebug.h"
static int dload_progress_cb(void *a, curl_off_t b, curl_off_t c,
curl_off_t d, curl_off_t e)
{

View file

@ -30,8 +30,6 @@
#include "first.h"
#include "memdebug.h"
static const char t1525_testdata[] = "Hello Cloud!\n";
static size_t t1525_read_cb(char *ptr, size_t size, size_t nmemb, void *stream)

View file

@ -29,8 +29,6 @@
#include "first.h"
#include "memdebug.h"
static const char t1526_testdata[] = "Hello Cloud!\n";
static size_t t1526_read_cb(char *ptr, size_t size, size_t nmemb, void *stream)

View file

@ -29,8 +29,6 @@
#include "first.h"
#include "memdebug.h"
static const char t1527_testdata[] = "Hello Cloud!\n";
static size_t t1527_read_cb(char *ptr, size_t size, size_t nmemb, void *stream)

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1528(const char *URL)
{
CURL *curl = NULL;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1529(const char *URL)
{
CURL *curl = NULL;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static curl_socket_t opensocket(void *clientp,
curlsocktype purpose,
struct curl_sockaddr *address)

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1531(const char *URL)
{
static char const testData[] = ".abc\0xyz";

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
/* Test CURLINFO_RESPONSE_CODE */
static CURLcode test_lib1532(const char *URL)

View file

@ -31,8 +31,6 @@
#include "first.h"
#include "memdebug.h"
struct cb_data {
CURL *curl;
int response_received;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
/* Test CURLINFO_FILETIME */
static CURLcode test_lib1534(const char *URL)

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
/* Test CURLINFO_PROTOCOL */
static CURLcode test_lib1535(const char *URL)

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
/* Test CURLINFO_SCHEME */
static CURLcode test_lib1536(const char *URL)

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1537(const char *URL)
{
const unsigned char a[] = {0x2f, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1538(const char *URL)
{
CURLcode res = CURLE_OK;

View file

@ -24,7 +24,6 @@
#include "first.h"
#include "testtrace.h"
#include "memdebug.h"
struct t1540_transfer_status {
CURL *curl;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
struct t1541_transfer_status {
CURL *curl;
int hd_count;

View file

@ -33,7 +33,6 @@
#include "first.h"
#include "testtrace.h"
#include "memdebug.h"
static CURLcode test_lib1542(const char *URL)
{

View file

@ -24,7 +24,6 @@
#include "first.h"
#include "testtrace.h"
#include "memdebug.h"
static CURLcode test_lib1549(const char *URL)
{

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
#include <curl/multi.h>
static CURLcode test_lib1550(const char *URL)

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
#include <curl/multi.h>
static CURLcode test_lib1551(const char *URL)

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1552(const char *URL)
{
CURL *curl = NULL;

View file

@ -24,7 +24,6 @@
#include "first.h"
#include "testtrace.h"
#include "memdebug.h"
static int t1553_xferinfo(void *p,
curl_off_t dltotal, curl_off_t dlnow,

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static const char *ldata_names[] = {
"NONE",
"SHARE",

View file

@ -27,8 +27,6 @@
#include "first.h"
#include "memdebug.h"
static CURL *t1555_curl;
static int progressCallback(void *arg,

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
struct headerinfo {
size_t largest;
};

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1557(const char *URL)
{
CURLM *multi = NULL;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1558(const char *URL)
{
CURLcode res = CURLE_OK;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1559(const char *URL)
{
static const int EXCESSIVE = 10*1000*1000;
@ -38,7 +36,7 @@ static CURLcode test_lib1559(const char *URL)
global_init(CURL_GLOBAL_ALL);
easy_init(curl);
longurl = malloc(EXCESSIVE);
longurl = curlx_malloc(EXCESSIVE);
if(!longurl) {
res = TEST_ERR_MAJOR_BAD;
goto test_cleanup;
@ -70,7 +68,7 @@ static CURLcode test_lib1559(const char *URL)
}
test_cleanup:
free(longurl);
curlx_free(longurl);
curl_easy_cleanup(curl);
curl_global_cleanup();

View file

@ -35,8 +35,6 @@
#define USE_IDN
#endif
#include "memdebug.h" /* LAST include file */
static int checkparts(CURLU *u, const char *in, const char *wanted,
unsigned int getflags)
{

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
#define WAKEUP_NUM 10
static CURLcode test_lib1564(const char *URL)

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
#ifdef HAVE_PTHREAD_H
#include <pthread.h>

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
#include <curl/multi.h>
static CURLcode test_lib1567(const char *URL)

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1568(const char *URL)
{
CURLcode res = TEST_ERR_MAJOR_BAD;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1569(const char *URL)
{
CURLcode res = CURLE_OK;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1571(const char *URL)
{
CURLcode res;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static char t1576_testdata[] = "request indicates that the client, which made";
static size_t t1576_read_cb(char *ptr, size_t size, size_t nmemb, void *stream)

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1582(const char *URL)
{
CURLcode res;

View file

@ -29,8 +29,6 @@
#include "first.h"
#include "memdebug.h"
static size_t consumed = 0;
static size_t t1591_read_cb(char *ptr, size_t size, size_t nmemb, void *stream)

View file

@ -26,8 +26,6 @@
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1593(const char *URL)
{
struct curl_slist *header = NULL;

View file

@ -26,8 +26,6 @@
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1594(const char *URL)
{
struct curl_slist *header = NULL;

View file

@ -26,8 +26,6 @@
#include "first.h"
#include "memdebug.h"
struct pair {
const char *in;
CURLcode *exp;

View file

@ -29,8 +29,6 @@
#include "first.h"
#include "memdebug.h"
/*
* carefully not leak memory on OOM
*/

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1900(const char *URL)
{
CURLcode res = CURLE_OK;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static size_t t1901_read_cb(char *ptr, size_t size, size_t nmemb, void *stream)
{
static const char *chunks[] = {

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1902(const char *URL)
{
CURLcode res = CURLE_OK;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1903(const char *URL)
{
CURLcode res = CURLE_OK;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1905(const char *URL)
{
CURLSH *share = NULL;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1906(const char *URL)
{
CURLcode res = CURLE_OK;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1907(const char *URL)
{
char *url_after;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1908(const char *URL)
{
CURLcode res = TEST_ERR_MAJOR_BAD;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1910(const char *URL)
{
CURLcode res = TEST_ERR_MAJOR_BAD;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
/* The maximum string length limit (CURL_MAX_INPUT_LENGTH) is an internal
define not publicly exposed so we set our own */
#define MAX_INPUT_LENGTH 8000000

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
#define print_err(name, exp) \
curl_mfprintf(stderr, "Type mismatch for CURLOPT_%s (expected %s)\n", \
name, exp)

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1913(const char *URL)
{
CURLcode res = TEST_ERR_MAJOR_BAD;

View file

@ -24,7 +24,6 @@
#include "first.h"
#include "testtrace.h"
#include "memdebug.h"
struct state {
int index;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1916(const char *URL)
{
CURL *curl;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1918(const char *URL)
{
const struct curl_easyoption *o;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1919(const char *URL)
{
CURLcode res = CURLE_OK;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1933(const char *URL)
{
CURL *curl;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1934(const char *URL)
{
CURL *curl;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1935(const char *URL)
{
CURL *curl;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1936(const char *URL)
{
CURL *curl;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1937(const char *URL)
{
CURL *curl;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1938(const char *URL)
{
CURL *curl;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static CURLcode test_lib1939(const char *URL)
{
CURLM *multi;

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static size_t t1940_write_cb(char *data, size_t n, size_t l, void *userp)
{
/* take care of the data here, ignored in this example */

View file

@ -23,8 +23,6 @@
***************************************************************************/
#include "first.h"
#include "memdebug.h"
static void t1945_showem(CURL *curl, unsigned int type)
{
struct curl_header *header = NULL;

Some files were not shown because too many files have changed in this diff Show more