mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-27 15:32:10 +08:00
fab4801e1e
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>