llvm-project
e93d6090 - [rtsan] Fix sanitizer_common/TestCases/dlsym_alloc.c (#216579)

Commit
28 days ago
[rtsan] Fix sanitizer_common/TestCases/dlsym_alloc.c (#216579) This test crashes on `free(NULL)` when DlsymAlloc is being used. This is because `DlysmAlloc::Free` seems to crash on linux when it's called with `nullptr`. The vast majority of other sanitizers guard against it on the sanitizer side in this way: https://github.com/llvm/llvm-project/blob/65e0fe689bb7c1a6516644c27c25c3fe3c8b1ac7/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp#L728 https://github.com/llvm/llvm-project/blob/65e0fe689bb7c1a6516644c27c25c3fe3c8b1ac7/compiler-rt/lib/lsan/lsan_interceptors.cpp#L78 For example.
Author
Parents
Loading