Merge #17708: prevector: avoid misaligned member accesses
5f26855f109af53a336d5f98ed0ae584e7a31f84 test: Remove ubsan alignment suppressions (Wladimir J. van der Laan)
9d933ef9191417b4b7d29eaa3c3a571f814acc8e prevector: avoid misaligned member accesses (Anthony Towns)
Pull request description:
Ensure prevector data is appropriately aligned. Earlier discussion in #17530.
**Edit laanwj**: In contrast to #17530, it does this without increase in size of any of the coin cache data structures (x86_64, clang)
| Struct | (size,align) before | (size,align) after |
| ------------- | ------------- | ------- |
| Coin | 48, 8 | 48, 8 |
| CCoinsCacheEntry | 56, 8 | 56, 8 |
| CScript | 32, 1 | 32, 8 |
ACKs for top commit:
laanwj:
ACK 5f26855f109af53a336d5f98ed0ae584e7a31f84
practicalswift:
ACK 5f26855f109af53a336d5f98ed0ae584e7a31f84
jonatack:
ACK 5f26855f109af53a336d5f98ed0ae584e7a31f84
Tree-SHA512: 98d112d6856f683d5b212410b73f3071d2994f1efb046a2418a35890aa1cf1aa7c96a960fc2e963fa15241e861093c1ea41951cf5b4b5431f88345eb1dd0a98a
2020-02-12 17:48:22 +01:00
|
|
|
# -fsanitize=undefined suppressions
|
|
|
|
# =================================
|
2018-11-05 20:49:38 +01:00
|
|
|
bool:wallet/wallet.cpp
|
|
|
|
float-divide-by-zero:policy/fees.cpp
|
|
|
|
float-divide-by-zero:validation.cpp
|
|
|
|
float-divide-by-zero:wallet/wallet.cpp
|
2018-11-06 23:25:30 +01:00
|
|
|
unsigned-integer-overflow:arith_uint256.h
|
2018-11-05 20:49:38 +01:00
|
|
|
unsigned-integer-overflow:basic_string.h
|
|
|
|
unsigned-integer-overflow:bench/bench.h
|
2022-04-19 08:09:42 +02:00
|
|
|
unsigned-integer-overflow:dash-tx.cpp
|
2018-11-05 20:49:38 +01:00
|
|
|
unsigned-integer-overflow:bloom.cpp
|
2018-11-06 23:25:30 +01:00
|
|
|
unsigned-integer-overflow:chain.cpp
|
2018-11-05 20:49:38 +01:00
|
|
|
unsigned-integer-overflow:chain.h
|
2018-11-06 23:25:30 +01:00
|
|
|
unsigned-integer-overflow:coded_stream.h
|
|
|
|
unsigned-integer-overflow:core_write.cpp
|
2018-11-05 20:49:38 +01:00
|
|
|
unsigned-integer-overflow:crypto/chacha20.cpp
|
|
|
|
unsigned-integer-overflow:crypto/ctaes/ctaes.c
|
|
|
|
unsigned-integer-overflow:crypto/ripemd160.cpp
|
|
|
|
unsigned-integer-overflow:crypto/sha1.cpp
|
|
|
|
unsigned-integer-overflow:crypto/sha256.cpp
|
|
|
|
unsigned-integer-overflow:crypto/sha512.cpp
|
|
|
|
unsigned-integer-overflow:hash.cpp
|
|
|
|
unsigned-integer-overflow:leveldb/db/log_reader.cc
|
|
|
|
unsigned-integer-overflow:leveldb/util/bloom.cc
|
|
|
|
unsigned-integer-overflow:leveldb/util/crc32c.h
|
|
|
|
unsigned-integer-overflow:leveldb/util/hash.cc
|
|
|
|
unsigned-integer-overflow:policy/fees.cpp
|
2018-11-06 23:25:30 +01:00
|
|
|
unsigned-integer-overflow:prevector.h
|
2018-11-05 20:49:38 +01:00
|
|
|
unsigned-integer-overflow:script/interpreter.cpp
|
|
|
|
unsigned-integer-overflow:stl_bvector.h
|
|
|
|
unsigned-integer-overflow:txmempool.cpp
|
2018-11-06 23:25:30 +01:00
|
|
|
unsigned-integer-overflow:util/strencodings.cpp
|
2018-11-05 20:49:38 +01:00
|
|
|
unsigned-integer-overflow:validation.cpp
|
2018-11-06 23:25:30 +01:00
|
|
|
vptr:fs.cpp
|
2022-03-17 14:53:37 +01:00
|
|
|
vptr:bls/bls.h
|