]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add mempool get/put tracking with AddressSanitizer
authorOndřej Surý <ondrej@sury.org>
Thu, 25 Feb 2021 10:08:34 +0000 (11:08 +0100)
committerEvan Hunt <each@isc.org>
Fri, 26 Feb 2021 18:13:17 +0000 (10:13 -0800)
commit1cd14c4dece91ba2ff1550594673c21d1cd67f66
tree3e16940c730710024cc86044739396b2885cf734
parent4649bc04d719db70cdcad42f106b6aa086879c3c
Add mempool get/put tracking with AddressSanitizer

When AddressSanitizer is in use, disable the internal mempool
implementation and redirect the isc_mempool_get to isc_mem_get
(and similarly for isc_mempool_put). This is the method recommended
by the AddressSanitizer authors for tracking allocations and
deallocations instead of custom poison/unpoison code (see
https://github.com/google/sanitizers/wiki/AddressSanitizerManualPoisoning).
lib/isc/mem.c
lib/isc/tests/mem_test.c