• Stephan Bergmann's avatar
    external/breakpad: Work around -fsanitize=alignment · b834fad4
    Stephan Bergmann yazdı
    ...as seen in the scenario described in 5997121a
    "Support signal handlers registered with SA_SIGINFO", first
    
    > src/client/linux/minidump_writer/directory_reader.h:82:19: runtime error: member access within misaligned address 0x7f3f8235c2cc for type 'struct kernel_dirent', which requires 8 byte alignment
    > 0x7f3f8235c2cc: note: pointer points here
    >   10 02 00 00 d8 f8 3b 00  00 00 00 00 01 00 00 00  00 00 00 00 18 00 2e 00  00 00 00 04 02 c7 3b 00
    
    and then
    
    > src/client/linux/minidump_writer/linux_dumper.cc:382:19: runtime error: member access within misaligned address 0x7f96c225d7bc for type 'google_breakpad::MappingInfo', which requires 8 byte alignment
    > 0x7f96c225d7bc: note: pointer points here
    >   20 0a 32 30 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
    >               ^
    
    Change-Id: I7f739567879093a404bee3e351ce9e8257676183
    b834fad4
ubsan.patch 742 Bytes