]> git.puffer.fish Git - matthieu/frr.git/commitdiff
disable malloc extensions for libdislocate
authorQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 19 Nov 2019 03:56:53 +0000 (22:56 -0500)
committerQuentin Young <qlyoung@nvidia.com>
Mon, 15 Nov 2021 19:40:24 +0000 (14:40 -0500)
libdislocate allows asan-like functionality but works ootb with AFL.
Unfortunately linux malloc extensions don't like it, so disable those.

lib/memory.h

index c95602f4853842888afdd45a74a631f5d42b21d7..b1523175a3e1195f7ab20fb3783e0ee6a2dca1bc 100644 (file)
@@ -27,6 +27,8 @@
 extern "C" {
 #endif
 
+#undef HAVE_MALLOC_USABLE_SIZE
+
 #if defined(HAVE_MALLOC_SIZE) && !defined(HAVE_MALLOC_USABLE_SIZE)
 #define malloc_usable_size(x) malloc_size(x)
 #define HAVE_MALLOC_USABLE_SIZE