mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-27 15:32:10 +08:00
b714b223ad
To avoid unnecessary duplication of potentially large memory regions, the iOS MemorySnapshot data is owned by the intermediate dump. When merging two iOS memory snapshots, it's necessary to copy the merged data into a vector owned by the memory snapshot itself. Previously the merged snapshot just contained the original data, which leads to a heap overrun. Bug: 1288544 Change-Id: I4eb392800141451db188d17c7b9f9ca9bd3bb603 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3399252 Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Justin Cohen <justincohen@chromium.org>