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

Issue 113510043: Move the ASan error info struct and function into their own file. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 12 months ago by Sébastien Marchand
Modified:
10 years, 11 months ago
Reviewers:
chrisha
CC:
sawbuck-changes_googlegroups.com
Base URL:
http://sawbuck.googlecode.com/svn/trunk
Visibility:
Public.

Description

Move the ASan error info struct and function into their own file. Sorry for the size of this CL... Most of this code has just been moved, here's more details for the file with a big positive diff: - asan_error_info.[h/cc]: All the access/error information structure and functions have been moved here, there's no new code here, just some code shuffling. - asan_error_info_unittest.cc: only AsanErrorInfoTest.ErrorInfoGetAsanBlockInfo is new, the rest is just some code shuffling. - block_utils.cc: new file (but only 8 lines long !). - block_utils_unittest.cc: Tests have been moved from asan_heap_unittest.cc - unittest_util.h: I've moved some useful fixtures that were used in asan_heap.cc, no new code. BUG= R=chrisha@chromium.org Committed: https://code.google.com/p/sawbuck/source/detail?r=2195

Patch Set 1 : #

Total comments: 21

Patch Set 2 : Address Chris comments. #

Total comments: 2

Patch Set 3 : Fix nit. #

Patch Set 4 : Fix the integration tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1296 lines, -1077 lines) Patch
M syzygy/agent/asan/asan.gyp View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M syzygy/agent/asan/asan_crt_interceptors.cc View 1 9 chunks +18 lines, -17 lines 0 comments Download
M syzygy/agent/asan/asan_crt_interceptors_unittest.cc View 1 26 chunks +41 lines, -41 lines 0 comments Download
M syzygy/agent/asan/asan_heap.h View 1 6 chunks +1 line, -74 lines 0 comments Download
M syzygy/agent/asan/asan_heap.cc View 5 chunks +2 lines, -268 lines 0 comments Download
M syzygy/agent/asan/asan_heap_checker.h View 1 2 chunks +1 line, -41 lines 0 comments Download
M syzygy/agent/asan/asan_heap_checker.cc View 1 chunk +1 line, -1 line 0 comments Download
M syzygy/agent/asan/asan_heap_unittest.cc View 1 17 chunks +31 lines, -447 lines 0 comments Download
M syzygy/agent/asan/asan_rtl_impl.cc View 3 chunks +8 lines, -8 lines 0 comments Download
M syzygy/agent/asan/asan_rtl_impl_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M syzygy/agent/asan/asan_rtl_unittest.cc View 1 25 chunks +48 lines, -49 lines 0 comments Download
M syzygy/agent/asan/asan_rtl_utils.h View 1 4 chunks +5 lines, -4 lines 0 comments Download
M syzygy/agent/asan/asan_rtl_utils.cc View 1 4 chunks +5 lines, -5 lines 0 comments Download
M syzygy/agent/asan/asan_rtl_utils_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M syzygy/agent/asan/asan_runtime.h View 2 chunks +1 line, -51 lines 0 comments Download
M syzygy/agent/asan/asan_runtime.cc View 6 chunks +11 lines, -12 lines 0 comments Download
M syzygy/agent/asan/asan_system_interceptor_parser.py View 3 chunks +6 lines, -6 lines 0 comments Download
M syzygy/agent/asan/asan_system_interceptors.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M syzygy/agent/asan/asan_system_interceptors_unittest.cc View 1 11 chunks +11 lines, -10 lines 0 comments Download
M syzygy/agent/asan/block_utils.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
A + syzygy/agent/asan/block_utils.cc View 1 chunk +9 lines, -14 lines 0 comments Download
A syzygy/agent/asan/block_utils_unittest.cc View 1 chunk +90 lines, -0 lines 0 comments Download
A syzygy/agent/asan/error_info.h View 1 1 chunk +194 lines, -0 lines 0 comments Download
A syzygy/agent/asan/error_info.cc View 1 1 chunk +300 lines, -0 lines 0 comments Download
A syzygy/agent/asan/error_info_unittest.cc View 1 1 chunk +229 lines, -0 lines 0 comments Download
M syzygy/agent/asan/nested_heap_unittest.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M syzygy/agent/asan/shadow_unittest.cc View 1 3 chunks +9 lines, -12 lines 0 comments Download
M syzygy/agent/asan/unittest_util.h View 1 3 chunks +80 lines, -0 lines 0 comments Download
M syzygy/agent/asan/unittest_util.cc View 1 2 chunks +165 lines, -0 lines 0 comments Download
M syzygy/integration_tests/instrument_integration_test.cc View 1 2 3 1 chunk +9 lines, -9 lines 0 comments Download

Messages

Total messages: 6
Sébastien Marchand
PTAL. Sorry for the size of this CL... Most of this code has just been ...
10 years, 12 months ago (2014-07-24 22:36:19 UTC) #1
chrisha
Calling this asan_error_info.h/.cc is a little redundant. error_info would suffice. (I've been slowly removing the ...
10 years, 11 months ago (2014-07-25 15:07:46 UTC) #2
Sébastien Marchand
Thanks, PTAnL. https://codereview.appspot.com/113510043/diff/40001/syzygy/agent/asan/asan_error_info.cc File syzygy/agent/asan/asan_error_info.cc (right): https://codereview.appspot.com/113510043/diff/40001/syzygy/agent/asan/asan_error_info.cc#newcode54 syzygy/agent/asan/asan_error_info.cc:54: memcpy(dst, On 2014/07/25 15:07:45, chrisha wrote: > ...
10 years, 11 months ago (2014-07-25 15:46:06 UTC) #3
chrisha
Awesome, lgtm with a single nit https://codereview.appspot.com/113510043/diff/80001/syzygy/agent/asan/block_utils.h File syzygy/agent/asan/block_utils.h (right): https://codereview.appspot.com/113510043/diff/80001/syzygy/agent/asan/block_utils.h#newcode50 syzygy/agent/asan/block_utils.h:50: // Checks if ...
10 years, 11 months ago (2014-07-25 16:52:26 UTC) #4
Sébastien Marchand
Thanks, committing. https://codereview.appspot.com/113510043/diff/80001/syzygy/agent/asan/block_utils.h File syzygy/agent/asan/block_utils.h (right): https://codereview.appspot.com/113510043/diff/80001/syzygy/agent/asan/block_utils.h#newcode50 syzygy/agent/asan/block_utils.h:50: // Checks if a block is corrupt. ...
10 years, 11 months ago (2014-07-25 17:24:18 UTC) #5
Sébastien Marchand
10 years, 11 months ago (2014-07-25 18:13:32 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 manually as r2195 (presubmit successful).
Sign in to reply to this message.

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