[llvm-commits] AddressSanitizer: return False for __asan_get_ownership(NULL) (issue 5543070)

samsonov at google.com samsonov at google.com
Wed Jan 18 07:30:58 PST 2012


r148394


http://codereview.appspot.com/5543070/diff/1/asan_allocator.cc
File asan_allocator.cc (right):

http://codereview.appspot.com/5543070/diff/1/asan_allocator.cc#newcode829
asan_allocator.cc:829: return
malloc_info.AllocationSize((uintptr_t)ptr);
On 2012/01/17 14:40:07, glider wrote:
> Can you please explicitly check for non-NULL in AllocationSize? That
will save
> us a couple of cycles.

Done (instead, treat NULL as a special case in AllocationSize).

http://codereview.appspot.com/5543070/



More information about the llvm-commits mailing list