breakpad/src/client
Ted Mielczarek e132514d80 Ensure Linux minidump writer flushes minidump header early.
If the Linux minidump writer crashes while writing a dump, the dump
might contain some useful information, but the header will be empty
because TypedMDRVA's destructor flushes the data, and the header var
doesn't go out of scope until the end of the `Dump` method. This
fixes that problem by putting the header in a shorter block scope.

We've seen this problem in some Android dumps in the wild, like:
https://crash-stats.mozilla.com/report/index/cef5b777-02d1-43c2-bf40-133ab2160209

R=thestig@chromium.org
BUG=https://bugzilla.mozilla.org/show_bug.cgi?id=1247978

Review URL: https://codereview.chromium.org/1696573003 .
2016-02-12 15:50:16 -05:00
..
apple/Framework Mac: Add support for in-process crash reporting to Breakpad. 2014-09-15 22:48:18 +00:00
ios Only release current_breakpad_ if it is defined. 2015-10-14 17:35:47 +02:00
linux Ensure Linux minidump writer flushes minidump header early. 2016-02-12 15:50:16 -05:00
mac Fix usage of deprecated function CFPropertyListCreateFromXMLData. 2016-02-08 17:38:33 +01:00
solaris/handler Use stdint types everywhere 2013-03-06 14:04:42 +00:00
windows Fix Windows crash_generation_server for debug builds without -D_DEBUG 2015-10-07 14:19:23 -04:00
minidump_file_writer_unittest.cc Turn on more warnings in ios / mac projects. 2012-09-21 07:58:25 +00:00
minidump_file_writer-inl.h Clean up build for 64 bit. 2010-07-19 20:43:49 +00:00
minidump_file_writer.cc Android: Workaround for ftruncate() issues. 2015-11-05 15:45:01 -08:00
minidump_file_writer.h Fix the documentation for MinidumpFileWriter::Open(). 2014-05-12 19:36:46 +00:00