mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-26 06:31:50 +08:00
Alex Pankhurst
fab4801e1e
[fuchsia] Fix ubsan issues
Fuchsia's undefined behavior sanitizer was detecting unaligned accesses to 8 byte aligned data in Crashpad tests because various MINIDUMP_* structs are packed with 4 byte alignment. This change copies unaligned data in tests to local variable that can be safely used to check values. Example errors: ''' [../../third_party/crashpad/minidump/minidump_thread_name_list_writer_test.cc:95:3]: runtime error: reference binding to misaligned address 0x461e104cfbd4 for type 'const RVA64' (aka 'const unsigned long'), which requires 8 byte aligment ''' ''' ''' Change-Id: I3c0905aa9eab810c00d57f1e9e54bb8eaaff54b0 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3775293 Reviewed-by: Joshua Peraza <jperaza@chromium.org> Commit-Queue: Alex Pankhurst <pankhurst@google.com>
Crashpad
Crashpad is a crash-reporting system.
Documentation
- Project status
- Developing Crashpad: instructions for getting the source code, building, testing, and contributing to the project.
- Crashpad interface documentation
- Crashpad tool man pages
- Crashpad overview design
Source Code
Crashpad’s source code is hosted in a Git repository at https://chromium.googlesource.com/crashpad/crashpad.
Other Links
- Bugs can be reported at the Crashpad issue tracker.
- The Crashpad bots perform automated builds and tests.
- crashpad-dev is the Crashpad developers’ mailing list.
Description
Languages
C++
92.6%
Objective-C++
2.5%
C
2%
Python
1.7%
Assembly
0.9%
Other
0.3%