Introduce the check_malloc_usable_size flag (on by default).
authorAlexander Potapenko <glider@google.com>
Fri, 25 May 2012 15:20:13 +0000 (15:20 +0000)
committerAlexander Potapenko <glider@google.com>
Fri, 25 May 2012 15:20:13 +0000 (15:20 +0000)
commit442002568c12eb1f2dff6173cc52e6f6c7eb249a
tree41ade474bd583bfd43d08f36d82294dff97099f3
parent501dbd06ae679dba4d91720de42590de900301fd
Introduce the check_malloc_usable_size flag (on by default).
When the flag is set to zero, we do not check for errors in malloc_usable_size.
This may be useful to work around a bug in Nvidia drivers prior to 295.*

llvm-svn: 157472
compiler-rt/lib/asan/asan_allocator.cc
compiler-rt/lib/asan/asan_internal.h
compiler-rt/lib/asan/asan_rtl.cc