mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 14:06:33 +00:00
As Mark noted in [1] ProcessMemory should accept VMSize instead of size_t, the two types can differ on platforms where a cross-bitness handler could cause a 32-bit handler to inspect a 64-bit process. By centralizing the checks in ProcessMemory, we can leave the individual platform-specific implementations (in ProcessMemory*::ReadUpTo) to accept size_ts. [1] crrev.com/c/1388017/2/snapshot/crashpad_types/crashpad_info_reader.cc#70 Bug: crashpad:270 Change-Id: I3aab483221de36f3b1478cb9503101b142dae681 Reviewed-on: https://chromium-review.googlesource.com/c/1387756 Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Vlad Tsyrklevich <vtsyrklevich@chromium.org>