diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-10-10 21:16:25 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-10-10 21:16:25 +0300 |
commit | 50c9e5efea6913cf97b4b1afd8c57f886f552d32 (patch) | |
tree | ae6e689a7f9a61b1cfd5ee88bf3299837af37ee9 /src/testcurl | |
parent | fe8a9c6181424520383dd7ff7e30a082158e4b04 (diff) | |
download | libmicrohttpd-50c9e5efea6913cf97b4b1afd8c57f886f552d32.tar.gz libmicrohttpd-50c9e5efea6913cf97b4b1afd8c57f886f552d32.zip |
Added custom memory poisoning for MemoryPool
Diffstat (limited to 'src/testcurl')
-rw-r--r-- | src/testcurl/test_toolarge.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testcurl/test_toolarge.c b/src/testcurl/test_toolarge.c index 70b37ff9..4294010a 100644 --- a/src/testcurl/test_toolarge.c +++ b/src/testcurl/test_toolarge.c | |||
@@ -193,8 +193,14 @@ _mhdErrorExit_func (const char *errDesc, const char *funcName, int lineNum) | |||
193 | 193 | ||
194 | #define BUFFER_SIZE 1024 | 194 | #define BUFFER_SIZE 1024 |
195 | 195 | ||
196 | #define MHD_ASAN_ACTIVE 1 | ||
197 | |||
196 | /* The size of the test element that must pass the test */ | 198 | /* The size of the test element that must pass the test */ |
199 | #ifndef MHD_ASAN_POISON_ACTIVE | ||
197 | #define TEST_OK_SIZE (BUFFER_SIZE - 384) | 200 | #define TEST_OK_SIZE (BUFFER_SIZE - 384) |
201 | #else /* MHD_ASAN_POISON_ACTIVE */ | ||
202 | #define TEST_OK_SIZE (BUFFER_SIZE - 384 - 80) | ||
203 | #endif /* MHD_ASAN_POISON_ACTIVE */ | ||
198 | 204 | ||
199 | /* The size of the test element where tests are started */ | 205 | /* The size of the test element where tests are started */ |
200 | #define TEST_START_SIZE (TEST_OK_SIZE - 16) | 206 | #define TEST_START_SIZE (TEST_OK_SIZE - 16) |