diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-09-09 15:41:25 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-09-14 08:32:45 +0200 |
commit | 47dd957daff9199daa5fabfc557fe8c36d61f375 (patch) | |
tree | 4be473c2a0c5187372cbb9844f4e53269a344110 /tests | |
parent | c4ea71ae3235cca8c6837f48664d587e52eb32d2 (diff) | |
download | curl-47dd957daff9199daa5fabfc557fe8c36d61f375.tar.gz |
curl: use curlx_dynbuf for realloc when loading config files
... fixes an integer overflow at the same time.
Reported-by: ihsinme on github
Assisted-by: Jay Satiro
Closes #5946
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/test558 | 4 | ||||
-rw-r--r-- | tests/libtest/Makefile.inc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/data/test558 b/tests/data/test558 index d5aa0e087..f313e813a 100644 --- a/tests/data/test558 +++ b/tests/data/test558 @@ -38,8 +38,8 @@ nothing <file name="log/memdump"> MEM lib558.c: malloc() MEM lib558.c: free() -MEM strdup.c: realloc() -MEM strdup.c: realloc() +MEM dynbuf.c: realloc() +MEM dynbuf.c: realloc() MEM escape.c: free() </file> <stripfile> diff --git a/tests/libtest/Makefile.inc b/tests/libtest/Makefile.inc index 88dd68529..4904515cd 100644 --- a/tests/libtest/Makefile.inc +++ b/tests/libtest/Makefile.inc @@ -65,7 +65,7 @@ chkdecimalpoint_SOURCES = chkdecimalpoint.c ../../lib/mprintf.c \ ../../lib/curl_ctype.c ../../lib/dynbuf.c ../../lib/strdup.c chkdecimalpoint_LDADD = chkdecimalpoint_CPPFLAGS = $(AM_CPPFLAGS) -DCURL_STATICLIB \ - -DCURLX_NO_MEMORY_CALLBACKS + -DCURLX_NO_MEMORY_CALLBACKS -DBUILDING_LIBCURL chkhostname_SOURCES = chkhostname.c ../../lib/curl_gethostname.c chkhostname_LDADD = @CURL_NETWORK_LIBS@ |