Skip to content

Commit 857fae9

Browse files
MarcoFalkePastaPastaPasta
MarcoFalke
authored andcommittedAug 16, 2021
Merge bitcoin#14252: build: Run functional tests and benchmarks under the undefined behaviour sanitizer (UBSan)
9f49db7 Enable functional tests in UBSAN job. Enable -fsanitize=integer (part of UBSAN). Merge UBSAN Travis job with no depends. (practicalswift) Pull request description: Run functional tests and benchmarks under the undefined behaviour sanitizer (UBSan). This will make Travis automatically detect issues such as: * bitcoin#14242: Avoid triggering undefined behaviour (`std::memset(nullptr, 0, 0)`) if an invalid string is passed to `DecodeSecret(...)` * bitcoin#14239: Avoid dividing by zero (undefined behaviour) in `EstimateMedianVal` (policy)/`ConnectTip` (validation)/`CreateTransaction` (wallet) * bitcoin#13546: wallet: Avoid potential use of uninitialized value `bnb_used` in `CWallet::CreateTransaction(...)` Addresses issue bitcoin#14059. Tree-SHA512: 285e1542b36c582516c47938ce8d999fd89ba6c867bc0976e7306e7c949b8b84ffbfa43dbc679dd97ae639b086092e7d799d8e1c903c66a37d529ce61d5c64b4
1 parent 569e449 commit 857fae9

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
 

Diff for: ‎contrib/sanitizers-ubsan.suppressions

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
alignment:move.h
2+
alignment:prevector.h
3+
bool:wallet/wallet.cpp
4+
float-divide-by-zero:policy/fees.cpp
5+
float-divide-by-zero:validation.cpp
6+
float-divide-by-zero:wallet/wallet.cpp
7+
nonnull-attribute:support/cleanse.cpp
8+
unsigned-integer-overflow:basic_string.h
9+
unsigned-integer-overflow:bench/bench.h
10+
unsigned-integer-overflow:bloom.cpp
11+
unsigned-integer-overflow:chain.h
12+
unsigned-integer-overflow:crypto/chacha20.cpp
13+
unsigned-integer-overflow:crypto/ctaes/ctaes.c
14+
unsigned-integer-overflow:crypto/ripemd160.cpp
15+
unsigned-integer-overflow:crypto/sha1.cpp
16+
unsigned-integer-overflow:crypto/sha256.cpp
17+
unsigned-integer-overflow:crypto/sha512.cpp
18+
unsigned-integer-overflow:hash.cpp
19+
unsigned-integer-overflow:leveldb/db/log_reader.cc
20+
unsigned-integer-overflow:leveldb/util/bloom.cc
21+
unsigned-integer-overflow:leveldb/util/crc32c.h
22+
unsigned-integer-overflow:leveldb/util/hash.cc
23+
unsigned-integer-overflow:policy/fees.cpp
24+
unsigned-integer-overflow:script/interpreter.cpp
25+
unsigned-integer-overflow:stl_bvector.h
26+
unsigned-integer-overflow:txmempool.cpp
27+
unsigned-integer-overflow:validation.cpp

0 commit comments

Comments
 (0)