diff options
author | Mark Mentovai <mark@chromium.org> | 2019-04-26 12:28:57 -0400 |
---|---|---|
committer | Mark Mentovai <mark@chromium.org> | 2019-04-26 18:44:49 +0000 |
commit | 9f90ceb904b776d194863af218e8bce26d95ce8f (patch) | |
tree | 9ba53eafc125c802400ebda33ae0ba6a0d595cdc /src/processor/synth_minidump.cc | |
parent | [Breakpad iOS] Add a callback on report upload completion. (diff) | |
download | breakpad-9f90ceb904b776d194863af218e8bce26d95ce8f.tar.xz |
Linux MinidumpWriter: fix stack-use-after-scope violation
One form of google_breakpad::WriteMinidump() passed MappingList and
AppMemoryList objects by reference to a MinidumpWriter object,
instantiating them directly as constructor parameters. The
MinidumpWriter stored these objects internally as references, and the
underlying objects went out of scope after MinidumpWriter construction.
The MinidumpWriter outlived them, causing a violation on any attempt to
access them following construction.
This bug was detected by AddressSanitizer at
https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket.appspot.com/8915150848087289472/+/steps/breakpad_unittests__with_patch_/0/stdout
Bug: chromium:949098
Change-Id: I072ea9f1b64e1eae3e89d4a2b158764ff7970db5
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/1585946
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Diffstat (limited to 'src/processor/synth_minidump.cc')
0 files changed, 0 insertions, 0 deletions