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

Issue 1370843003: Remove warning pragmas in pe_image.cc (Closed)

Created:
5 years, 2 months ago by Will Harris
Modified:
4 years, 12 months ago
Reviewers:
Nico
CC:
chromium-reviews, grt+watch_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove warning pragmas in pe_image.cc PEImage::GetProcAddress now returns consistent -1 on both 32-bit and 64-bit. Added a test to verify. BUG=167707, 554200 Committed: https://crrev.com/a01e999b6c4c23533dca9cdc73ec11a01939fddd Cr-Commit-Position: refs/heads/master@{#366836}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 4

Patch Set 3 : change getprocaddress to return -1 on 64 and 32. add test. #

Patch Set 4 : rebase #

Total comments: 6

Patch Set 5 : use ScopedNativeLibrary #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -38 lines) Patch
M base/test/data/pe_image/pe_image_test_32.dll View 1 2 Binary file 0 comments Download
M base/test/data/pe_image/pe_image_test_64.dll View 1 2 Binary file 0 comments Download
M base/win/pe_image.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M base/win/pe_image.cc View 1 2 3 4 chunks +9 lines, -19 lines 0 comments Download
M base/win/pe_image_test.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M base/win/pe_image_unittest.cc View 1 2 3 4 5 chunks +44 lines, -18 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
Will Harris
PTAL - finish off this bug once and for all.
5 years, 2 months ago (2015-09-26 01:57:49 UTC) #2
Will Harris
If this l-g-t-y then please CQ and close bug as Fixed.
5 years, 2 months ago (2015-09-26 01:58:18 UTC) #3
Will Harris
necro-CL For Christmas PTAL. :)
5 years ago (2015-12-23 20:22:21 UTC) #4
Nico
lgtm https://codereview.chromium.org/1370843003/diff/20001/base/win/pe_image.cc File base/win/pe_image.cc (right): https://codereview.chromium.org/1370843003/diff/20001/base/win/pe_image.cc#newcode214 base/win/pe_image.cc:214: // Cast from 32-bit value to 64-bit pointer ...
5 years ago (2015-12-23 20:57:01 UTC) #5
Will Harris
I redid this CL, so it needs another look. Thanks. https://codereview.chromium.org/1370843003/diff/20001/base/win/pe_image.cc File base/win/pe_image.cc (right): https://codereview.chromium.org/1370843003/diff/20001/base/win/pe_image.cc#newcode214 ...
4 years, 12 months ago (2015-12-24 05:35:51 UTC) #8
Nico
Thanks, that's much better! One real comment below (the -1 one), lgtm with that addressed ...
4 years, 12 months ago (2015-12-24 14:11:12 UTC) #9
Will Harris
Merry Christmas https://codereview.chromium.org/1370843003/diff/60001/base/win/pe_image.cc File base/win/pe_image.cc (right): https://codereview.chromium.org/1370843003/diff/60001/base/win/pe_image.cc#newcode214 base/win/pe_image.cc:214: return reinterpret_cast<FARPROC>(-1); On 2015/12/24 14:11:11, Nico wrote: ...
4 years, 12 months ago (2015-12-24 19:22:04 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1370843003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1370843003/80001
4 years, 12 months ago (2015-12-24 20:55:45 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 12 months ago (2015-12-24 21:43:15 UTC) #15
commit-bot: I haz the power
4 years, 12 months ago (2015-12-24 21:44:24 UTC) #17
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a01e999b6c4c23533dca9cdc73ec11a01939fddd
Cr-Commit-Position: refs/heads/master@{#366836}

Powered by Google App Engine
This is Rietveld 408576698