[compiler-rt] [lsan] Fix free(NULL) interception during initialization (PR #106912)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 6 14:24:45 PDT 2024
================
@@ -77,6 +77,8 @@ INTERCEPTOR(void*, malloc, uptr size) {
}
INTERCEPTOR(void, free, void *p) {
+ if (!p)
----------------
vitalybuka wrote:
I see, you are correct.
Can you please include all other sanitizers here, also cfree, and please use UNLIKELY(!p)
https://github.com/llvm/llvm-project/pull/106912
More information about the llvm-commits
mailing list