aboutsummaryrefslogtreecommitdiff
path: root/test/sanitizer_suppressions/ubsan
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2019-12-10 17:05:21 +1000
committerAnthony Towns <aj@erisian.com.au>2019-12-10 18:11:40 +1000
commit9d933ef9191417b4b7d29eaa3c3a571f814acc8e (patch)
treefb291f4f400f52ba1107a345e015188d184d8e1b /test/sanitizer_suppressions/ubsan
parent1189b6acab115a7fe7bd67f8b4c6e3f55e53274e (diff)
downloadbitcoin-9d933ef9191417b4b7d29eaa3c3a571f814acc8e.tar.xz
prevector: avoid misaligned member accesses
`#pragma pack(1)` prevents aligning the struct and its members to their required alignment. This can result in code that performs non-aligned reads and writes to integers and pointers, which is problematic on some architectures. It also triggers UBsan — see https://github.com/bitcoin/bitcoin/pull/17156#issuecomment-543123631 and #17510.
Diffstat (limited to 'test/sanitizer_suppressions/ubsan')
0 files changed, 0 insertions, 0 deletions