[PATCH] Improvements for asan deactivated mode: disable asan activation for runtime library on Linux, disable malloc checks.

Evgeniy Stepanov eugenis at google.com
Fri Nov 14 07:58:00 PST 2014


================
Comment at: lib/asan/asan_activation.cc:52
@@ -45,1 +51,3 @@
+  flags()->alloc_dealloc_mismatch = false;
+  common_flags()->allocator_may_return_null = false;
 
----------------
m.guseva wrote:
> eugenis wrote:
> > In fact, why are you changing allocator_may_return_null?  It's not a check but rather a conscious decision on malloc behavior.
> > 
> I wanted to disable ASan termination in this case. Now I see for that reason the flag should be true, not false. If it's fixed do you agree it makes sense?
Ah ok allocator_may_return_null=true is the "normal" allocator behavior.
Sounds good.

http://reviews.llvm.org/D6265






More information about the llvm-commits mailing list