diff options
| author | Anthony Towns <[email protected]> | 2019-12-10 17:05:21 +1000 |
|---|---|---|
| committer | Anthony Towns <[email protected]> | 2019-12-10 18:11:40 +1000 |
| commit | 9d933ef9191417b4b7d29eaa3c3a571f814acc8e (patch) | |
| tree | fb291f4f400f52ba1107a345e015188d184d8e1b /src/httpserver.cpp | |
| parent | Merge #17109: tests: Add fuzzing harness for various functions consuming only... (diff) | |
| download | discoin-9d933ef9191417b4b7d29eaa3c3a571f814acc8e.tar.xz discoin-9d933ef9191417b4b7d29eaa3c3a571f814acc8e.zip | |
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 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions