-
- Downloads
mem-include-scan: verify memory #includes
If we use memory functions (malloc, free, strdup etc) in C sources in libcurl and we fail to include curl_memory.h or memdebug.h we either fail to properly support user-provided memory callbacks or the memory leak system of the test suite fails. After Ajit's report of a failure in the first category in http_proxy.c, I spotted a few in the second category as well. These problems are now tested for by test 1132 which runs a perl program that scans for and attempts to check that we use the correct include files if a memory related function is used in the source code. Reported by: Ajit Dhumale Bug: http://curl.haxx.se/mail/lib-2012-11/0125.html
Showing
- lib/dict.c 1 addition, 1 deletionlib/dict.c
- lib/gopher.c 2 additions, 2 deletionslib/gopher.c
- lib/http_proxy.c 1 addition, 0 deletionslib/http_proxy.c
- lib/idn_win32.c 4 additions, 0 deletionslib/idn_win32.c
- lib/md5.c 9 additions, 0 deletionslib/md5.c
- lib/non-ascii.c 6 additions, 2 deletionslib/non-ascii.c
- lib/nwlib.c 4 additions, 1 deletionlib/nwlib.c
- lib/strdup.c 4 additions, 2 deletionslib/strdup.c
- lib/strerror.c 3 additions, 0 deletionslib/strerror.c
- tests/Makefile.am 1 addition, 1 deletiontests/Makefile.am
- tests/data/Makefile.am 1 addition, 1 deletiontests/data/Makefile.am
- tests/data/test1132 24 additions, 0 deletionstests/data/test1132
- tests/mem-include-scan.pl 96 additions, 0 deletionstests/mem-include-scan.pl
Loading
Please register or sign in to comment