]> git.ipfire.org Git - thirdparty/bind9.git/commit
Simplify Address Sanitizer tweaks in mem.c
authorOndřej Surý <ondrej@isc.org>
Wed, 15 Dec 2021 11:07:22 +0000 (12:07 +0100)
committerOndřej Surý <ondrej@sury.org>
Fri, 17 Dec 2021 13:43:05 +0000 (14:43 +0100)
commitee1f8b60c5f3fbb95746716f4648e025b431ad78
tree3ee0e7311ccab7bddf811ecbdf8db663000e7665
parent88bce03b93d1c23dba635777222c4a87274644cf
Simplify Address Sanitizer tweaks in mem.c

Previously, whole isc_mempool_get() and isc_mempool_set() would be
replaced by simpler version when run with address sanitizer.

Change the code to limit the fillcount to 1 and freemax to 0.  This
change will make isc_mempool_get() to always allocate and use a single
new item and isc_mempool_put() will always return the item to the
allocator.
lib/isc/mem.c