diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-03-07 21:35:27 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-03-07 21:35:27 +0300 |
commit | 1a46bfd6e0929e2004ffda318282cbf21d9f5299 (patch) | |
tree | 7313f1cdb258b07fbfaa5dcb0135794cb7de19c1 | |
parent | 56a7664a729419a08ae3223a48ef0fad1cca4369 (diff) | |
download | libmicrohttpd-1a46bfd6e0929e2004ffda318282cbf21d9f5299.tar.gz libmicrohttpd-1a46bfd6e0929e2004ffda318282cbf21d9f5299.zip |
memorypool: fixed: unpoison memory for ASAN before destroying pool
-rw-r--r-- | src/microhttpd/memorypool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/memorypool.c b/src/microhttpd/memorypool.c index 49ed9524..4408378c 100644 --- a/src/microhttpd/memorypool.c +++ b/src/microhttpd/memorypool.c | |||
@@ -272,7 +272,7 @@ MHD_pool_destroy (struct MemoryPool *pool) | |||
272 | 272 | ||
273 | mhd_assert (pool->end >= pool->pos); | 273 | mhd_assert (pool->end >= pool->pos); |
274 | mhd_assert (pool->size >= pool->end - pool->pos); | 274 | mhd_assert (pool->size >= pool->end - pool->pos); |
275 | _MHD_POISON_MEMORY (pool->memory, pool->size); | 275 | _MHD_UNPOISON_MEMORY (pool->memory, pool->size); |
276 | if (! pool->is_mmap) | 276 | if (! pool->is_mmap) |
277 | free (pool->memory); | 277 | free (pool->memory); |
278 | else | 278 | else |