Commit fa9ebed MarcoFalke
committed
1 parent 46424e9 commit fa9ebed Copy full SHA for fa9ebed
File tree 2 files changed +8
-3
lines changed
test/sanitizer_suppressions
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -4989,6 +4989,14 @@ bool ChainstateManager::PopulateAndValidateSnapshot(
4989
4989
coins_count - coins_left);
4990
4990
return false ;
4991
4991
}
4992
+ if (coin.nHeight > base_height ||
4993
+ outpoint.n >= std::numeric_limits<decltype (outpoint.n )>::max () // Avoid integer wrap-around in coinstats.cpp:ApplyHash
4994
+ ) {
4995
+ LogPrintf (" [snapshot] bad snapshot data after deserializing %d coins\n " ,
4996
+ coins_count - coins_left);
4997
+ return false ;
4998
+ }
4999
+
4992
5000
coins_cache.EmplaceCoinInternalDANGER (std::move (outpoint), std::move (coin));
4993
5001
4994
5002
--coins_left;
Original file line number Diff line number Diff line change @@ -34,9 +34,6 @@ unsigned-integer-overflow:crypto/
34
34
unsigned-integer-overflow:FuzzedDataProvider.h
35
35
unsigned-integer-overflow:hash.cpp
36
36
unsigned-integer-overflow:leveldb/
37
- # temporary coinstats suppressions (will be removed and fixed in https://github.com/bitcoin/bitcoin/pull/22146)
38
- unsigned-integer-overflow:node/coinstats.cpp
39
- signed-integer-overflow:node/coinstats.cpp
40
37
unsigned-integer-overflow:policy/fees.cpp
41
38
unsigned-integer-overflow:prevector.h
42
39
unsigned-integer-overflow:pubkey.h
You can’t perform that action at this time.
0 commit comments