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

Issue 6817076: Added an utility function to ensure that we don't "asanize" the same image twice. (Closed)

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

Description

Added an utility function to ensure that we don't "asanize" the same image twice. BUG= Committed: https://code.google.com/p/sawbuck/source/detail?r=1220

Patch Set 1 #

Total comments: 8

Patch Set 2 : Moved ContainsDependenceToDLL to pe_utils. #

Total comments: 6

Patch Set 3 : Address Siggi's comments. #

Total comments: 12

Patch Set 4 : Address Siggi's and Roger's comments. #

Total comments: 6

Patch Set 5 : Address Roger's comments. #

Patch Set 6 : Oops, introduced bug fixed. #

Patch Set 7 : License fixed. #

Patch Set 8 : License fixed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -6 lines) Patch
M syzygy/agent/asan/asan_shadow_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M syzygy/instrument/transforms/asan_transform.cc View 1 2 3 chunks +14 lines, -0 lines 0 comments Download
M syzygy/pe/pe_utils.h View 1 2 3 4 5 6 2 chunks +10 lines, -1 line 0 comments Download
M syzygy/pe/pe_utils.cc View 1 2 3 4 5 6 4 chunks +78 lines, -1 line 0 comments Download
M syzygy/pe/pe_utils_unittest.cc View 1 2 3 4 5 6 7 3 chunks +25 lines, -1 line 0 comments Download
M syzygy/pe/transforms/add_imports_transform.cc View 1 2 3 4 5 6 4 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 12
Sébastien Marchand
PTAL. https://codereview.appspot.com/6817076/diff/1/syzygy/instrument/transforms/asan_transform.cc File syzygy/instrument/transforms/asan_transform.cc (right): https://codereview.appspot.com/6817076/diff/1/syzygy/instrument/transforms/asan_transform.cc#newcode249 syzygy/instrument/transforms/asan_transform.cc:249: Most of this code come from pe\transforms\add_imports_transform.cc::FindOrAddImageImportDescriptor , ...
11 years, 5 months ago (2012-11-02 19:52:05 UTC) #1
Roger McFarlane
Nice. This can be a generalized PE utility function to check if the header block ...
11 years, 5 months ago (2012-11-02 20:01:01 UTC) #2
Sébastien Marchand
Thanks, PTAnL. I've moved the function to pe_utils. However, I can't simply call it in ...
11 years, 5 months ago (2012-11-02 21:09:55 UTC) #3
Siggi
https://codereview.appspot.com/6817076/diff/3/syzygy/pe/pe_utils.cc File syzygy/pe/pe_utils.cc (right): https://codereview.appspot.com/6817076/diff/3/syzygy/pe/pe_utils.cc#newcode405 syzygy/pe/pe_utils.cc:405: size_t max_len = ref_dll_name.block()->size() - ref_dll_name.offset(); this looks like ...
11 years, 5 months ago (2012-11-05 13:58:30 UTC) #4
Sébastien Marchand
Thanks, PTAnL. https://codereview.appspot.com/6817076/diff/3/syzygy/pe/pe_utils.cc File syzygy/pe/pe_utils.cc (right): https://codereview.appspot.com/6817076/diff/3/syzygy/pe/pe_utils.cc#newcode405 syzygy/pe/pe_utils.cc:405: size_t max_len = ref_dll_name.block()->size() - ref_dll_name.offset(); On ...
11 years, 5 months ago (2012-11-05 14:51:23 UTC) #5
Siggi
https://codereview.appspot.com/6817076/diff/5005/syzygy/pe/pe_utils.cc File syzygy/pe/pe_utils.cc (right): https://codereview.appspot.com/6817076/diff/5005/syzygy/pe/pe_utils.cc#newcode353 syzygy/pe/pe_utils.cc:353: base::StringPiece dll_name, we use const base::StringPiece& https://codereview.appspot.com/6817076/diff/5005/syzygy/pe/pe_utils.h File syzygy/pe/pe_utils.h ...
11 years, 5 months ago (2012-11-05 14:55:21 UTC) #6
Roger McFarlane
A few more nits. https://codereview.appspot.com/6817076/diff/5005/syzygy/pe/pe_utils.cc File syzygy/pe/pe_utils.cc (right): https://codereview.appspot.com/6817076/diff/5005/syzygy/pe/pe_utils.cc#newcode354 syzygy/pe/pe_utils.cc:354: bool* contains_dependence) { s/contains_dependence/has_import_entry/?? -- ...
11 years, 5 months ago (2012-11-05 15:25:38 UTC) #7
Sébastien Marchand
PTAnL. https://codereview.appspot.com/6817076/diff/5005/syzygy/pe/pe_utils.cc File syzygy/pe/pe_utils.cc (right): https://codereview.appspot.com/6817076/diff/5005/syzygy/pe/pe_utils.cc#newcode353 syzygy/pe/pe_utils.cc:353: base::StringPiece dll_name, On 2012/11/05 14:55:21, Siggi wrote: > ...
11 years, 5 months ago (2012-11-05 15:58:00 UTC) #8
Roger McFarlane
lgtm https://codereview.appspot.com/6817076/diff/12001/syzygy/pe/pe_utils_unittest.cc File syzygy/pe/pe_utils_unittest.cc (right): https://codereview.appspot.com/6817076/diff/12001/syzygy/pe/pe_utils_unittest.cc#newcode327 syzygy/pe/pe_utils_unittest.cc:327: ASSERT_FALSE(has_import); you can EXPECT_* on has_import as well.
11 years, 5 months ago (2012-11-05 16:13:23 UTC) #9
Roger McFarlane
https://codereview.appspot.com/6817076/diff/12001/syzygy/pe/pe_utils_unittest.cc File syzygy/pe/pe_utils_unittest.cc (right): https://codereview.appspot.com/6817076/diff/12001/syzygy/pe/pe_utils_unittest.cc#newcode313 syzygy/pe/pe_utils_unittest.cc:313: EXPECT_EQ("foo_func", module.GetSymbolName(function_foo)); put foo_func into a string kFooFunc and ...
11 years, 5 months ago (2012-11-05 16:14:44 UTC) #10
Siggi
lgtm modulo Roger's remaining nits.
11 years, 5 months ago (2012-11-05 16:17:27 UTC) #11
Sébastien Marchand
11 years, 5 months ago (2012-11-05 16:27:46 UTC) #12
Thanks, committing.

https://codereview.appspot.com/6817076/diff/12001/syzygy/pe/pe_utils_unittest.cc
File syzygy/pe/pe_utils_unittest.cc (right):

https://codereview.appspot.com/6817076/diff/12001/syzygy/pe/pe_utils_unittest...
syzygy/pe/pe_utils_unittest.cc:313: EXPECT_EQ("foo_func",
module.GetSymbolName(function_foo));
On 2012/11/05 16:14:45, Roger McFarlane wrote:
> put foo_func into a string kFooFunc and ASSERT_EQ

Done.

https://codereview.appspot.com/6817076/diff/12001/syzygy/pe/pe_utils_unittest...
syzygy/pe/pe_utils_unittest.cc:318:
EXPECT_TRUE(block_graph::ApplyBlockGraphTransform(
On 2012/11/05 16:14:45, Roger McFarlane wrote:
> ASSERT_TRUE

Done.

https://codereview.appspot.com/6817076/diff/12001/syzygy/pe/pe_utils_unittest...
syzygy/pe/pe_utils_unittest.cc:327: ASSERT_FALSE(has_import);
On 2012/11/05 16:13:24, Roger McFarlane wrote:
> you can EXPECT_* on has_import as well.

Done.
Sign in to reply to this message.

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