eBPF-based security platform
malloc: poison asprintf and vasprintf by name only under clang
Daniel Borkmann9a41a4c171ee
diff --git a/util/malloc.h b/util/malloc.hindex 21e23c60..2e9f83ed 100644--- a/util/malloc.h+++ b/util/malloc.h@@ -60,6 +60,9 @@ void shirudo_libc_free(void *p);* SHIRUDO_MALLOC_INTERNAL.*/#ifndef SHIRUDO_MALLOC_INTERNAL+/* Fortified glibc makes these macros for clang; poison the names alone. */+# undef asprintf+# undef vasprintf# pragma GCC poison malloc calloc realloc reallocarray free strdup strndup asprintf vasprintf#endif