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

glider at google.com glider at google.com
Tue Jan 17 06:40:07 PST 2012


LGTM otherwise


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);
Can you please explicitly check for non-NULL in AllocationSize? That
will save us a couple of cycles.

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



More information about the llvm-commits mailing list