[llvm-dev] Temporary disable ASan's allocator check

Jonas Devlieghere via llvm-dev llvm-dev at lists.llvm.org
Wed Sep 6 08:43:35 PDT 2017


Hi all,

Is it possible to change the value of ASan's allocator_may_return_null at runtime or somehow disable this check temporarily? If I install an LLVM bad_alloc_error_handler, ASan's allocator wrapper detects this first and terminates the process instead of returning 0, preventing the custom handler from being called. 

Thanks,
Jonas


More information about the llvm-dev mailing list