Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(944)

Issue 5543070: AddressSanitizer: return False for __asan_get_ownership(NULL) (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 11 months ago by samsonov
Modified:
12 years, 11 months ago
Reviewers:
ramosian.glider, glider, kcc
CC:
llvm-commits_cs.uiuc.edu
Base URL:
https://llvm.org/svn/llvm-project/compiler-rt/trunk/lib/asan/
Visibility:
Public.

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -29 lines) Patch
M asan_allocator.cc View 3 chunks +9 lines, -25 lines 2 comments Download
M asan_interface.h View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/asan_interface_test.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 3
samsonov
12 years, 11 months ago (2012-01-17 14:17:53 UTC) #1
glider
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 ...
12 years, 11 months ago (2012-01-17 14:40:07 UTC) #2
samsonov
12 years, 11 months ago (2012-01-18 15:30:58 UTC) #3
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).
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b