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

Issue 1372183002: win: Add memory map range intersection helper (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

win: Add memory map range intersection helper To be used for improved version of ReadMemory() that is memory-map aware, in particular for reading the environment block in https://codereview.chromium.org/1360863006/. R=mark@chromium.org BUG=crashpad:20, crashpad:46 Committed: https://chromium.googlesource.com/crashpad/crashpad/+/4df538f283d36f4984592236a6174af1641b75de

Patch Set 1 #

Patch Set 2 : . #

Total comments: 22

Patch Set 3 : . #

Patch Set 4 : const #

Total comments: 23

Patch Set 5 : fixes #

Total comments: 3

Patch Set 6 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+348 lines, -6 lines) Patch
M util/numeric/checked_range.h View 1 2 3 4 1 chunk +22 lines, -2 lines 0 comments Download
M util/numeric/checked_range_test.cc View 1 2 3 4 4 chunks +57 lines, -4 lines 0 comments Download
M util/win/process_info.h View 1 2 3 4 5 3 chunks +21 lines, -0 lines 0 comments Download
M util/win/process_info.cc View 1 2 3 4 3 chunks +74 lines, -0 lines 0 comments Download
M util/win/process_info_test.cc View 1 2 3 4 1 chunk +174 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 10 (0 generated)
scottmg
5 years, 2 months ago (2015-09-28 18:25:30 UTC) #1
Mark Mentovai
https://codereview.chromium.org/1372183002/diff/20001/util/win/process_info.cc File util/win/process_info.cc (right): https://codereview.chromium.org/1372183002/diff/20001/util/win/process_info.cc#newcode445 util/win/process_info.cc:445: if (mi.base_address + mi.region_size <= address) Optional, but since ...
5 years, 2 months ago (2015-09-29 21:35:50 UTC) #2
Mark Mentovai
Do you need or want to deal with PAGE_NOACCESS in this too?
5 years, 2 months ago (2015-09-29 21:41:17 UTC) #3
scottmg
https://codereview.chromium.org/1372183002/diff/20001/util/win/process_info.cc File util/win/process_info.cc (right): https://codereview.chromium.org/1372183002/diff/20001/util/win/process_info.cc#newcode445 util/win/process_info.cc:445: if (mi.base_address + mi.region_size <= address) On 2015/09/29 21:35:50, ...
5 years, 2 months ago (2015-09-30 17:40:26 UTC) #4
scottmg
On 2015/09/29 21:41:17, Mark Mentovai - August is over wrote: > Do you need or ...
5 years, 2 months ago (2015-09-30 17:41:13 UTC) #5
Mark Mentovai
https://codereview.chromium.org/1372183002/diff/20001/util/win/process_info.h File util/win/process_info.h (right): https://codereview.chromium.org/1372183002/diff/20001/util/win/process_info.h#newcode173 util/win/process_info.h:173: std::vector<CheckedRange<WinVMAddress, WinVMSize>> scottmg wrote: > The main reason is ...
5 years, 2 months ago (2015-10-01 17:38:59 UTC) #6
scottmg
Thanks! https://codereview.chromium.org/1372183002/diff/60001/util/numeric/checked_range.h File util/numeric/checked_range.h (right): https://codereview.chromium.org/1372183002/diff/60001/util/numeric/checked_range.h#newcode114 util/numeric/checked_range.h:114: //! Ranges are considered to be open-closed [base, ...
5 years, 2 months ago (2015-10-01 18:10:03 UTC) #7
Mark Mentovai
LGTM https://codereview.chromium.org/1372183002/diff/60001/util/numeric/checked_range_test.cc File util/numeric/checked_range_test.cc (right): https://codereview.chromium.org/1372183002/diff/60001/util/numeric/checked_range_test.cc#newcode266 util/numeric/checked_range_test.cc:266: {0x2800, 0, true}, scottmg wrote: > On 2015/10/01 ...
5 years, 2 months ago (2015-10-01 18:29:12 UTC) #8
scottmg
https://codereview.chromium.org/1372183002/diff/80001/util/win/process_info.h File util/win/process_info.h (right): https://codereview.chromium.org/1372183002/diff/80001/util/win/process_info.h#newcode138 util/win/process_info.h:138: //! \return A vector of ranges corresponding to the ...
5 years, 2 months ago (2015-10-01 18:43:44 UTC) #9
scottmg
5 years, 2 months ago (2015-10-01 18:47:38 UTC) #10
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
4df538f283d36f4984592236a6174af1641b75de (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698