Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(507)

Issue 2079723002: Instrumented malloc and free with dummy functions. (Closed)

Created:
4 years, 6 months ago by tlively
Modified:
4 years, 6 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Instrumented malloc and free with dummy functions. BUG=https://bugs.chromium.org/p/nativeclient/issues/detail?id=4374 R=kschimpf@google.com, stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=26c43064eccd7b238a97adf8c1e824cc4f2db4ea

Patch Set 1 #

Total comments: 9

Patch Set 2 : Added documentation, removed blacklist #

Patch Set 3 : Cleaned up instrumentCall() #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -29 lines) Patch
A docs/ASAN.rst View 1 1 chunk +33 lines, -0 lines 2 comments Download
M runtime/szrt_asan.c View 2 chunks +13 lines, -2 lines 0 comments Download
M src/IceASanInstrumentation.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M src/IceASanInstrumentation.cpp View 1 2 3 chunks +39 lines, -6 lines 0 comments Download
M src/IceInstrumentation.h View 1 chunk +17 lines, -17 lines 0 comments Download
M src/IceInstrumentation.cpp View 1 2 chunks +4 lines, -1 line 2 comments Download
A tests_lit/asan_tests/instrumentmalloc.ll View 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
tlively
4 years, 6 months ago (2016-06-17 04:09:42 UTC) #2
Jim Stichnoth
https://codereview.chromium.org/2079723002/diff/1/src/IceASanInstrumentation.cpp File src/IceASanInstrumentation.cpp (right): https://codereview.chromium.org/2079723002/diff/1/src/IceASanInstrumentation.cpp#newcode37 src/IceASanInstrumentation.cpp:37: const string_map FuncSubstitutions = {{"malloc", "__asan_malloc"}, I'm wondering if ...
4 years, 6 months ago (2016-06-17 15:43:06 UTC) #3
Karl
https://codereview.chromium.org/2079723002/diff/1/src/IceASanInstrumentation.cpp File src/IceASanInstrumentation.cpp (right): https://codereview.chromium.org/2079723002/diff/1/src/IceASanInstrumentation.cpp#newcode37 src/IceASanInstrumentation.cpp:37: const string_map FuncSubstitutions = {{"malloc", "__asan_malloc"}, On 2016/06/17 15:43:05, ...
4 years, 6 months ago (2016-06-17 16:06:02 UTC) #4
tlively
https://codereview.chromium.org/2079723002/diff/1/src/IceASanInstrumentation.cpp File src/IceASanInstrumentation.cpp (right): https://codereview.chromium.org/2079723002/diff/1/src/IceASanInstrumentation.cpp#newcode37 src/IceASanInstrumentation.cpp:37: const string_map FuncSubstitutions = {{"malloc", "__asan_malloc"}, On 2016/06/17 16:06:02, ...
4 years, 6 months ago (2016-06-17 21:39:40 UTC) #5
Karl
LGTM after nit is fixed. https://codereview.chromium.org/2079723002/diff/40001/src/IceInstrumentation.cpp File src/IceInstrumentation.cpp (right): https://codereview.chromium.org/2079723002/diff/40001/src/IceInstrumentation.cpp#newcode48 src/IceInstrumentation.cpp:48: if (FuncName == "_start") ...
4 years, 6 months ago (2016-06-17 22:04:11 UTC) #6
Jim Stichnoth
lgtm https://codereview.chromium.org/2079723002/diff/40001/docs/ASAN.rst File docs/ASAN.rst (right): https://codereview.chromium.org/2079723002/diff/40001/docs/ASAN.rst#newcode30 docs/ASAN.rst:30: Remove trailing "whitespace" (i.e. newlines) to keep git ...
4 years, 6 months ago (2016-06-17 22:39:24 UTC) #7
tlively
Committed patchset #3 (id:40001) manually as 26c43064eccd7b238a97adf8c1e824cc4f2db4ea (presubmit successful).
4 years, 6 months ago (2016-06-17 22:53:29 UTC) #9
tlively
4 years, 6 months ago (2016-06-17 23:03:59 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/2079723002/diff/40001/docs/ASAN.rst
File docs/ASAN.rst (right):

https://codereview.chromium.org/2079723002/diff/40001/docs/ASAN.rst#newcode30
docs/ASAN.rst:30: 
On 2016/06/17 22:39:24, stichnot wrote:
> Remove trailing "whitespace" (i.e. newlines) to keep git happy.
I didn't see this comment until after I landed, but it will be in my next CL.

https://codereview.chromium.org/2079723002/diff/40001/src/IceInstrumentation.cpp
File src/IceInstrumentation.cpp (right):

https://codereview.chromium.org/2079723002/diff/40001/src/IceInstrumentation....
src/IceInstrumentation.cpp:48: if (FuncName == "_start")
On 2016/06/17 22:04:11, Karl wrote:
> Move declaration of FuncName here.

Done.

Powered by Google App Engine
This is Rietveld 408576698