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

Issue 5876052: [ASan] add full strtoll implementation and interceptor (Closed)

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

Patch Set 1 : [ASan] add full strtoll implementation and interceptor #

Patch Set 2 : [ASan] use shorter wrapper for strtoll instead of full replacement #

Total comments: 4

Patch Set 3 : minor fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -0 lines) Patch
M asan_interceptors.cc View 1 2 4 chunks +53 lines, -0 lines 0 comments Download
M tests/asan_test.cc View 1 2 1 chunk +40 lines, -0 lines 0 comments Download

Messages

Total messages: 8
samsonov
We need to intercept strtol/atoi functions - calling them may result in OOB reads (and ...
12 years, 1 month ago (2012-03-22 12:17:21 UTC) #1
kcc1
I support the intention but I don't like the approach. You effectively reimplemented strtoll, which ...
12 years, 1 month ago (2012-03-22 16:15:11 UTC) #2
samsonov
On 2012/03/22 16:15:11, kcc1 wrote: > I support the intention but I don't like the ...
12 years, 1 month ago (2012-03-22 20:08:45 UTC) #3
kcc1
On Thu, Mar 22, 2012 at 1:08 PM, <samsonov@google.com> wrote: > On 2012/03/22 16:15:11, kcc1 ...
12 years, 1 month ago (2012-03-22 20:25:27 UTC) #4
samsonov
On Fri, Mar 23, 2012 at 12:25 AM, Kostya Serebryany <kcc@google.com> wrote: > > > ...
12 years, 1 month ago (2012-03-23 04:40:03 UTC) #5
samsonov
On 2012/03/23 04:40:03, samsonov wrote: > On Fri, Mar 23, 2012 at 12:25 AM, Kostya ...
12 years, 1 month ago (2012-03-23 14:13:09 UTC) #6
kcc1
Look good! http://codereview.appspot.com/5876052/diff/5002/asan_interceptors.cc File asan_interceptors.cc (right): http://codereview.appspot.com/5876052/diff/5002/asan_interceptors.cc#newcode72 asan_interceptors.cc:72: # if !defined(_WIN32) use ASAN_CAN_USE_STRTOLL http://codereview.appspot.com/5876052/diff/5002/asan_interceptors.cc#newcode657 asan_interceptors.cc:657: ...
12 years, 1 month ago (2012-03-23 15:35:45 UTC) #7
samsonov
12 years, 1 month ago (2012-03-24 08:40:42 UTC) #8
r153376, thanks!

http://codereview.appspot.com/5876052/diff/5002/asan_interceptors.cc
File asan_interceptors.cc (right):

http://codereview.appspot.com/5876052/diff/5002/asan_interceptors.cc#newcode72
asan_interceptors.cc:72: # if !defined(_WIN32)
On 2012/03/23 15:35:45, kcc1 wrote:
> use ASAN_CAN_USE_STRTOLL

ASAN_INTERCEPT_STRTOLL, if you don't mind.

http://codereview.appspot.com/5876052/diff/5002/asan_interceptors.cc#newcode657
asan_interceptors.cc:657: } else {
On 2012/03/23 15:35:45, kcc1 wrote:
> no "else" after return.

Done.
Sign in to reply to this message.

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