mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-10 06:36:02 +00:00
9d26012e9c73 relaxed the requirement on ScopedMmap such that the length of the region supervised no longer needed to be provided as a round number of pages. This was accomplished by internally rounding up the provided length to a page length. Unfortunately, this made ScopedMmap::len() return something other than the passed-in length, which is undesirable. This change makes ScopedMmap store the passed-in length internally, making it available unmodified via the accessor, and rounding it up to page length at internal points of use. Change-Id: I827925af68e38f33bfa3cee535db0f098884fc6b Reviewed-on: https://chromium-review.googlesource.com/c/1492774 Commit-Queue: Mark Mentovai <mark@chromium.org> Reviewed-by: Joshua Peraza <jperaza@chromium.org>