2024-02-20 17:06:31 +01:00
|
|
|
# -fsanitize=undefined suppressions
|
|
|
|
# =================================
|
2021-04-05 16:26:26 +02:00
|
|
|
# This would be `signed-integer-overflow:CTxMemPool::PrioritiseTransaction`,
|
|
|
|
# however due to a bug in clang the symbolizer is disabled and thus no symbol
|
|
|
|
# names can be used.
|
|
|
|
# See https://github.com/google/sanitizers/issues/1364
|
|
|
|
signed-integer-overflow:txmempool.cpp
|
2024-02-21 14:21:10 +01:00
|
|
|
# https://github.com/bitcoin/bitcoin/pull/21798#issuecomment-829180719
|
|
|
|
signed-integer-overflow:policy/feerate.cpp
|
2024-02-20 17:06:31 +01:00
|
|
|
|
2019-10-22 19:19:09 +02:00
|
|
|
# -fsanitize=integer suppressions
|
|
|
|
# ===============================
|
|
|
|
# Unsigned integer overflow occurs when the result of an unsigned integer
|
|
|
|
# computation cannot be represented in its type. Unlike signed integer overflow,
|
|
|
|
# this is not undefined behavior, but it is often unintentional. The list below
|
|
|
|
# contains files in which we expect unsigned integer overflows to occur. The
|
|
|
|
# list is used to suppress -fsanitize=integer warnings when running our CI UBSan
|
|
|
|
# job.
|
2024-02-20 17:06:31 +01:00
|
|
|
unsigned-integer-overflow:*/include/c++/
|
|
|
|
unsigned-integer-overflow:addrman.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
|
2024-10-25 23:36:52 +02:00
|
|
|
unsigned-integer-overflow:common/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
|
2024-02-20 17:06:31 +01:00
|
|
|
unsigned-integer-overflow:coins.cpp
|
|
|
|
unsigned-integer-overflow:compressor.cpp
|
|
|
|
unsigned-integer-overflow:crypto/
|
|
|
|
# unsigned-integer-overflow in FuzzedDataProvider's ConsumeIntegralInRange
|
|
|
|
unsigned-integer-overflow:FuzzedDataProvider.h
|
2018-11-05 20:49:38 +01:00
|
|
|
unsigned-integer-overflow:hash.cpp
|
2024-02-20 17:06:31 +01:00
|
|
|
unsigned-integer-overflow:leveldb/
|
2021-07-20 20:18:43 +02:00
|
|
|
unsigned-integer-overflow:minisketch/
|
2018-11-05 20:49:38 +01:00
|
|
|
unsigned-integer-overflow:policy/fees.cpp
|
2018-11-06 23:25:30 +01:00
|
|
|
unsigned-integer-overflow:prevector.h
|
2024-02-20 17:06:31 +01:00
|
|
|
unsigned-integer-overflow:pubkey.h
|
2018-11-05 20:49:38 +01:00
|
|
|
unsigned-integer-overflow:script/interpreter.cpp
|
|
|
|
unsigned-integer-overflow:stl_bvector.h
|
2021-12-24 12:57:43 +01:00
|
|
|
unsigned-integer-overflow:test/fuzz/crypto_diff_fuzz_chacha20.cpp
|
2018-11-05 20:49:38 +01:00
|
|
|
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
|
Merge bitcoin/bitcoin#26153: Reduce wasted pseudorandom bytes in ChaCha20 + various improvements
511aa4f1c7508f15cab8d7e58007900ad6fd3d5d Add unit test for ChaCha20's new caching (Pieter Wuille)
fb243d25f754da8f01793b41e2d225b917f3e5d7 Improve test vectors for ChaCha20 (Pieter Wuille)
93aee8bbdad808b7009279b67470d496cc26b936 Inline ChaCha20 32-byte specific constants (Pieter Wuille)
62ec713961ade7b58e90c905395558a41e8a59f0 Only support 32-byte keys in ChaCha20{,Aligned} (Pieter Wuille)
f21994a02e1cc46d41995581b54222abc655be93 Use ChaCha20Aligned in MuHash3072 code (Pieter Wuille)
5d16f757639e2cc6e81db6e07bc1d5dd74abca6c Use ChaCha20 caching in FastRandomContext (Pieter Wuille)
38eaece67b1bc37b2f502348c5d7537480a34346 Add fuzz test for testing that ChaCha20 works as a stream (Pieter Wuille)
5f05b27841af0bed1b6e7de5f46ffe33e5919e4d Add xoroshiro128++ PRNG (Martin Leitner-Ankerl)
12ff72476ac0dbf8add736ad3fb5fad2eeab156c Make unrestricted ChaCha20 cipher not waste keystream bytes (Pieter Wuille)
6babf402130a8f3ef3058594750aeaa50b8f5044 Rename ChaCha20::Seek -> Seek64 to clarify multiple of 64 (Pieter Wuille)
e37bcaa0a6dbb334ab6e817efcb609ccee6edc39 Split ChaCha20 into aligned/unaligned variants (Pieter Wuille)
Pull request description:
This is an alternative to #25354 (by my benchmarking, somewhat faster), subsumes #25712, and adds additional test vectors.
It separates the multiple-of-64-bytes-only "core" logic (which becomes simpler) from a layer around which performs caching/slicing to support arbitrary byte amounts. Both have their uses (in particular, the MuHash3072 code can benefit from multiple-of-64-bytes assumptions), plus the separation results in more readable code. Also, since FastRandomContext effectively had its own (more naive) caching on top of ChaCha20, that can be dropped in favor of ChaCha20's new built-in caching.
I thought about rebasing #25712 on top of this, but the changes before are fairly extensive, so redid it instead.
ACKs for top commit:
ajtowns:
ut reACK 511aa4f1c7508f15cab8d7e58007900ad6fd3d5d
dhruv:
tACK crACK 511aa4f1c7
Tree-SHA512: 3aa80971322a93e780c75a8d35bd39da3a9ea570fbae4491eaf0c45242f5f670a24a592c50ad870d5fd09b9f88ec06e274e8aa3cefd9561d623c63f7198cf2c7
2023-02-15 15:51:38 +01:00
|
|
|
unsigned-integer-overflow:xoroshiro128plusplus.h
|
2024-02-20 17:06:31 +01:00
|
|
|
implicit-integer-sign-change:*/include/boost/
|
|
|
|
implicit-integer-sign-change:*/include/c++/
|
2019-12-04 19:22:23 +01:00
|
|
|
implicit-integer-sign-change:*/new_allocator.h
|
2024-02-20 17:06:31 +01:00
|
|
|
implicit-integer-sign-change:addrman.h
|
2019-12-04 19:22:23 +01:00
|
|
|
implicit-integer-sign-change:bech32.cpp
|
2024-02-20 17:06:31 +01:00
|
|
|
implicit-integer-sign-change:chain.cpp
|
|
|
|
implicit-integer-sign-change:chain.h
|
2019-12-04 19:22:23 +01:00
|
|
|
implicit-integer-sign-change:compat/stdin.cpp
|
|
|
|
implicit-integer-sign-change:compressor.h
|
2023-06-01 11:22:39 +02:00
|
|
|
implicit-integer-sign-change:crc32c/
|
2024-02-20 17:06:31 +01:00
|
|
|
implicit-integer-sign-change:crypto/
|
|
|
|
# implicit-integer-sign-change in FuzzedDataProvider's ConsumeIntegralInRange
|
|
|
|
implicit-integer-sign-change:FuzzedDataProvider.h
|
2019-12-04 19:22:23 +01:00
|
|
|
implicit-integer-sign-change:key.cpp
|
2021-07-20 20:18:43 +02:00
|
|
|
implicit-integer-sign-change:minisketch/
|
2024-02-20 17:06:31 +01:00
|
|
|
implicit-integer-sign-change:policy/fees.cpp
|
2019-12-04 19:22:23 +01:00
|
|
|
implicit-integer-sign-change:prevector.h
|
|
|
|
implicit-integer-sign-change:script/bitcoinconsensus.cpp
|
|
|
|
implicit-integer-sign-change:script/interpreter.cpp
|
|
|
|
implicit-integer-sign-change:serialize.h
|
|
|
|
implicit-integer-sign-change:test/arith_uint256_tests.cpp
|
|
|
|
implicit-integer-sign-change:test/coins_tests.cpp
|
|
|
|
implicit-integer-sign-change:test/pow_tests.cpp
|
|
|
|
implicit-integer-sign-change:test/prevector_tests.cpp
|
|
|
|
implicit-integer-sign-change:test/sighash_tests.cpp
|
2024-02-20 17:06:31 +01:00
|
|
|
implicit-integer-sign-change:test/skiplist_tests.cpp
|
2019-12-04 19:22:23 +01:00
|
|
|
implicit-integer-sign-change:test/transaction_tests.cpp
|
|
|
|
implicit-integer-sign-change:txmempool.cpp
|
2024-02-20 17:06:31 +01:00
|
|
|
implicit-integer-sign-change:util/strencodings.cpp
|
|
|
|
implicit-integer-sign-change:util/strencodings.h
|
|
|
|
implicit-integer-sign-change:validation.cpp
|
2019-12-04 19:22:23 +01:00
|
|
|
implicit-signed-integer-truncation,implicit-integer-sign-change:chain.h
|
|
|
|
implicit-signed-integer-truncation,implicit-integer-sign-change:test/skiplist_tests.cpp
|
2024-02-20 17:06:31 +01:00
|
|
|
implicit-signed-integer-truncation:addrman.h
|
2019-12-04 19:22:23 +01:00
|
|
|
implicit-signed-integer-truncation:chain.h
|
2024-02-20 17:06:31 +01:00
|
|
|
implicit-signed-integer-truncation:crypto/
|
|
|
|
implicit-signed-integer-truncation:leveldb/
|
2019-12-04 19:22:23 +01:00
|
|
|
implicit-signed-integer-truncation:test/arith_uint256_tests.cpp
|
|
|
|
implicit-signed-integer-truncation:test/skiplist_tests.cpp
|
2021-01-29 07:43:05 +01:00
|
|
|
implicit-unsigned-integer-truncation:*/include/c++/
|
2024-02-20 17:06:31 +01:00
|
|
|
implicit-unsigned-integer-truncation:crypto/
|
|
|
|
implicit-unsigned-integer-truncation:leveldb/
|
2021-12-24 12:57:43 +01:00
|
|
|
implicit-unsigned-integer-truncation:test/fuzz/crypto_diff_fuzz_chacha20.cpp
|
2024-02-20 17:06:31 +01:00
|
|
|
# std::variant warning fixed in https://github.com/gcc-mirror/gcc/commit/074436cf8cdd2a9ce75cadd36deb8301f00e55b9
|
|
|
|
implicit-unsigned-integer-truncation:std::__detail::__variant::_Variant_storage
|
Merge bitcoin/bitcoin#26153: Reduce wasted pseudorandom bytes in ChaCha20 + various improvements
511aa4f1c7508f15cab8d7e58007900ad6fd3d5d Add unit test for ChaCha20's new caching (Pieter Wuille)
fb243d25f754da8f01793b41e2d225b917f3e5d7 Improve test vectors for ChaCha20 (Pieter Wuille)
93aee8bbdad808b7009279b67470d496cc26b936 Inline ChaCha20 32-byte specific constants (Pieter Wuille)
62ec713961ade7b58e90c905395558a41e8a59f0 Only support 32-byte keys in ChaCha20{,Aligned} (Pieter Wuille)
f21994a02e1cc46d41995581b54222abc655be93 Use ChaCha20Aligned in MuHash3072 code (Pieter Wuille)
5d16f757639e2cc6e81db6e07bc1d5dd74abca6c Use ChaCha20 caching in FastRandomContext (Pieter Wuille)
38eaece67b1bc37b2f502348c5d7537480a34346 Add fuzz test for testing that ChaCha20 works as a stream (Pieter Wuille)
5f05b27841af0bed1b6e7de5f46ffe33e5919e4d Add xoroshiro128++ PRNG (Martin Leitner-Ankerl)
12ff72476ac0dbf8add736ad3fb5fad2eeab156c Make unrestricted ChaCha20 cipher not waste keystream bytes (Pieter Wuille)
6babf402130a8f3ef3058594750aeaa50b8f5044 Rename ChaCha20::Seek -> Seek64 to clarify multiple of 64 (Pieter Wuille)
e37bcaa0a6dbb334ab6e817efcb609ccee6edc39 Split ChaCha20 into aligned/unaligned variants (Pieter Wuille)
Pull request description:
This is an alternative to #25354 (by my benchmarking, somewhat faster), subsumes #25712, and adds additional test vectors.
It separates the multiple-of-64-bytes-only "core" logic (which becomes simpler) from a layer around which performs caching/slicing to support arbitrary byte amounts. Both have their uses (in particular, the MuHash3072 code can benefit from multiple-of-64-bytes assumptions), plus the separation results in more readable code. Also, since FastRandomContext effectively had its own (more naive) caching on top of ChaCha20, that can be dropped in favor of ChaCha20's new built-in caching.
I thought about rebasing #25712 on top of this, but the changes before are fairly extensive, so redid it instead.
ACKs for top commit:
ajtowns:
ut reACK 511aa4f1c7508f15cab8d7e58007900ad6fd3d5d
dhruv:
tACK crACK 511aa4f1c7
Tree-SHA512: 3aa80971322a93e780c75a8d35bd39da3a9ea570fbae4491eaf0c45242f5f670a24a592c50ad870d5fd09b9f88ec06e274e8aa3cefd9561d623c63f7198cf2c7
2023-02-15 15:51:38 +01:00
|
|
|
shift-base:xoroshiro128plusplus.h
|
2021-04-29 12:11:35 +02:00
|
|
|
shift-base:nanobench.h
|
2024-02-20 17:06:31 +01:00
|
|
|
shift-base:*/include/c++/
|
|
|
|
shift-base:arith_uint256.cpp
|
|
|
|
shift-base:crypto/
|
|
|
|
shift-base:hash.cpp
|
|
|
|
shift-base:leveldb/
|
2021-07-20 20:18:43 +02:00
|
|
|
shift-base:minisketch/
|
2024-02-20 17:06:31 +01:00
|
|
|
shift-base:streams.h
|
2021-12-24 12:57:43 +01:00
|
|
|
shift-base:test/fuzz/crypto_diff_fuzz_chacha20.cpp
|
2024-02-20 17:06:31 +01:00
|
|
|
shift-base:util/bip32.cpp
|
|
|
|
vptr:bls/bls.h
|