Electron fork of crashpad
Перейти к файлу
Mark Mentovai d7798a4e28 Tolerate safe size mismatches in the CrashpadInfo struct
The handler will now be less strict about checking CrashpadInfo struct
sizes. Assuming the signature and version fields match:

 - If the handler sees a struct smaller than it’s expecting, the module
   was likely built with an earlier version of the client library, and
   it’s safe to treat the unknown fields as though they were zero or
   other suitable default values.
 - If the handler sees a struct larger than it’s expecting, the module
   was likely built with a later version of the client library. In that
   case, actions desired by the client will not be performed, but this
   is not otherwise an error condition.

The CrashpadInfo struct must always be at least large enough to contain
at least the size field. The signature and version fields are always
checked.

The section size must be at least as large as the size carried within
the struct. To account for possible section padding, strict equality is
not required.

Bug: chromium:784427
Test: crashpad_snapshot_test CrashpadInfoSizes_ClientOptions/*.*
Change-Id: Ibb0690ca6ed5e7619d1278a68ba7e893d55f19fb
Reviewed-on: https://chromium-review.googlesource.com/767709
Commit-Queue: Mark Mentovai <mark@chromium.org>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
2017-11-15 18:09:23 +00:00
build Include string annotation objects when uploading crash reports. 2017-11-02 16:39:06 +00:00
client Tolerate safe size mismatches in the CrashpadInfo struct 2017-11-15 18:09:23 +00:00
compat linux: Provide PTRACE_GET_THREAD_AREA for 32-bit x86 with glibc 2017-11-13 22:36:45 +00:00
doc doc: Update for NDK r15b 2017-06-27 16:00:59 +00:00
handler Include string annotation objects when uploading crash reports. 2017-11-02 16:39:06 +00:00
infra/config Disable the win x86 tests in the CQ until they are swarmed. 2017-07-29 22:14:51 +00:00
minidump Only disable -Wconstant-conversion for Clang, not GCC 2017-11-07 00:25:09 +00:00
snapshot Tolerate safe size mismatches in the CrashpadInfo struct 2017-11-15 18:09:23 +00:00
test win: Make ProcessSnapshotTest.CrashpadInfoChild use a loaded module 2017-11-09 23:18:51 +00:00
third_party Enable x86 optimizations for zlib 2017-06-28 20:20:36 +00:00
tools Use a FileReaderInterface for file attachments instead of a FilePath 2017-10-17 16:32:08 +00:00
util Add TimevalToTimespec and use it to get CurrentTime on macOS 2017-11-10 01:49:05 +00:00
.clang-format clang-format: don't bin pack arguments 2014-12-19 15:44:05 -08:00
.gitignore Use zlib to gzip-compress uploads 2017-02-16 16:26:19 +00:00
AUTHORS win: Handle the case when GetBytesBuffer returns error in HTTPTransportWin 2016-08-05 12:41:11 +00:00
CONTRIBUTORS Add contributors to CONTRIBUTORS. 2015-03-10 14:28:41 -04:00
DEPS Update mini_chromium to dd0c3e9680ae3c4c22f2221a2a75e48dd4a562ec 2017-11-06 20:16:15 +00:00
LICENSE Initial commit of Crashpad. 2014-07-30 23:24:58 -04:00
README.md Tweak the README wording. 2017-07-29 23:09:02 +00:00
codereview.settings Upload to the production Chromium Gerrit instance, not the canary 2017-05-19 20:56:57 +00:00
crashpad.gyp handler: Add user extensibility stream call-out. 2017-04-11 19:06:00 +00:00
navbar.md doc: Fix bad merge resulting in twin “Man Pages” links in nav bar 2016-11-08 19:26:07 +00:00
package.h package.h: Update copyright year to 2017 2017-03-01 19:41:56 +00:00

README.md

Crashpad

Crashpad is a crash-reporting system.

Documentation

Source Code

Crashpads source code is hosted in a Git repository at https://chromium.googlesource.com/crashpad/crashpad.