[PATCH] D60593: [GwpAsan] Introduce GWP-ASan.
Vlad Tsyrklevich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 3 12:10:06 PDT 2019
vlad.tsyrklevich added inline comments.
================
Comment at: compiler-rt/lib/gwp_asan/guarded_pool_allocator.cpp:431
+void __gwp_asan_deallocate(void *Ptr) {
+ gwp_asan::SingletonPtr->deallocate(Ptr);
+}
----------------
vlad.tsyrklevich wrote:
> if (!gwp_asan::SingletonPtr) return; to match the other functions?
I suppose it could also be assert(gwp_asan::SingletonPtr) since it's never correct to reach this function with an uninitialized GPA.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60593/new/
https://reviews.llvm.org/D60593
More information about the llvm-commits
mailing list