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

Issue 1370063005: MEM_RESERVE regions are not accessible by ReadProcessMemory() (Closed)

Created:
5 years, 2 months ago by scottmg
Modified:
5 years, 2 months ago
Reviewers:
Mark Mentovai
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@master
Target Ref:
refs/heads/master
Project:
crashpad
Visibility:
Public.

Description

MEM_RESERVE regions are not accessible by ReadProcessMemory() Sadly this code did not survive a collision with the real world. In probing for the environment block there's a MEM_COMMIT region followed directly by a MEM_RESERVE region (past the end of the environment block). Update region checker to correctly treat MEM_RESERVE as inaccessible. R=mark@chromium.org BUG=crashpad:20, crashpad:46, crashpad:59 Committed: https://chromium.googlesource.com/crashpad/crashpad/+/ccd5ec6404be1e9843a17261d0c65dd6d620f50b

Patch Set 1 #

Total comments: 4

Patch Set 2 : add real-world test #

Total comments: 9

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 2

Patch Set 6 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -14 lines) Patch
M util/win/process_info.cc View 1 2 2 chunks +5 lines, -6 lines 0 comments Download
M util/win/process_info_test.cc View 1 2 3 4 5 8 chunks +154 lines, -8 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
scottmg
5 years, 2 months ago (2015-10-01 20:13:59 UTC) #1
Mark Mentovai
LGTM, but the a test would protect against possible future regression. https://codereview.chromium.org/1370063005/diff/1/util/win/process_info.cc File util/win/process_info.cc (right): ...
5 years, 2 months ago (2015-10-01 20:51:09 UTC) #2
scottmg
https://codereview.chromium.org/1370063005/diff/1/util/win/process_info.cc File util/win/process_info.cc (right): https://codereview.chromium.org/1370063005/diff/1/util/win/process_info.cc#newcode1 util/win/process_info.cc:1: // Copyright 2015 The Crashpad Authors. All rights reserved. ...
5 years, 2 months ago (2015-10-01 21:30:20 UTC) #3
Mark Mentovai
LGTM https://codereview.chromium.org/1370063005/diff/20001/util/win/process_info_test.cc File util/win/process_info_test.cc (right): https://codereview.chromium.org/1370063005/diff/20001/util/win/process_info_test.cc#newcode401 util/win/process_info_test.cc:401: ProcessInfo info; Don’t declare this until you use ...
5 years, 2 months ago (2015-10-01 21:43:52 UTC) #4
scottmg
https://codereview.chromium.org/1370063005/diff/20001/util/win/process_info_test.cc File util/win/process_info_test.cc (right): https://codereview.chromium.org/1370063005/diff/20001/util/win/process_info_test.cc#newcode401 util/win/process_info_test.cc:401: ProcessInfo info; On 2015/10/01 21:43:52, Mark Mentovai wrote: > ...
5 years, 2 months ago (2015-10-01 22:03:49 UTC) #5
Mark Mentovai
Nice. LGTM. https://codereview.chromium.org/1370063005/diff/20001/util/win/process_info_test.cc File util/win/process_info_test.cc (right): https://codereview.chromium.org/1370063005/diff/20001/util/win/process_info_test.cc#newcode412 util/win/process_info_test.cc:412: // | ????? | | ????? | ...
5 years, 2 months ago (2015-10-01 22:22:29 UTC) #6
scottmg
https://codereview.chromium.org/1370063005/diff/80001/util/win/process_info_test.cc File util/win/process_info_test.cc (right): https://codereview.chromium.org/1370063005/diff/80001/util/win/process_info_test.cc#newcode511 util/win/process_info_test.cc:511: reinterpret_cast<void*>(reserved_as_int + (kBlockSize * 2)), On 2015/10/01 22:22:29, Mark ...
5 years, 2 months ago (2015-10-01 22:28:10 UTC) #7
scottmg
5 years, 2 months ago (2015-10-01 22:28:47 UTC) #8
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
ccd5ec6404be1e9843a17261d0c65dd6d620f50b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698