aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-03-07 21:35:27 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-03-07 21:35:27 +0300
commit1a46bfd6e0929e2004ffda318282cbf21d9f5299 (patch)
tree7313f1cdb258b07fbfaa5dcb0135794cb7de19c1
parent56a7664a729419a08ae3223a48ef0fad1cca4369 (diff)
downloadlibmicrohttpd-1a46bfd6e0929e2004ffda318282cbf21d9f5299.tar.gz
libmicrohttpd-1a46bfd6e0929e2004ffda318282cbf21d9f5299.zip
memorypool: fixed: unpoison memory for ASAN before destroying pool
-rw-r--r--src/microhttpd/memorypool.c2
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