mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 11:57:28 -03:00
Fix integer sanitizer suppressions in validation.cpp
This commit is contained in:
parent
f7a36477a6
commit
fac62056b5
2 changed files with 3 additions and 3 deletions
|
@ -1787,8 +1787,9 @@ DisconnectResult CChainState::DisconnectBlock(const CBlock& block, const CBlockI
|
||||||
error("DisconnectBlock(): transaction and undo data inconsistent");
|
error("DisconnectBlock(): transaction and undo data inconsistent");
|
||||||
return DISCONNECT_FAILED;
|
return DISCONNECT_FAILED;
|
||||||
}
|
}
|
||||||
for (unsigned int j = tx.vin.size(); j-- > 0;) {
|
for (unsigned int j = tx.vin.size(); j > 0;) {
|
||||||
const COutPoint &out = tx.vin[j].prevout;
|
--j;
|
||||||
|
const COutPoint& out = tx.vin[j].prevout;
|
||||||
int res = ApplyTxInUndo(std::move(txundo.vprevout[j]), view, out);
|
int res = ApplyTxInUndo(std::move(txundo.vprevout[j]), view, out);
|
||||||
if (res == DISCONNECT_FAILED) return DISCONNECT_FAILED;
|
if (res == DISCONNECT_FAILED) return DISCONNECT_FAILED;
|
||||||
fClean = fClean && res != DISCONNECT_UNCLEAN;
|
fClean = fClean && res != DISCONNECT_UNCLEAN;
|
||||||
|
|
|
@ -57,7 +57,6 @@ unsigned-integer-overflow:pubkey.h
|
||||||
unsigned-integer-overflow:script/interpreter.cpp
|
unsigned-integer-overflow:script/interpreter.cpp
|
||||||
unsigned-integer-overflow:txmempool.cpp
|
unsigned-integer-overflow:txmempool.cpp
|
||||||
unsigned-integer-overflow:util/strencodings.cpp
|
unsigned-integer-overflow:util/strencodings.cpp
|
||||||
unsigned-integer-overflow:validation.cpp
|
|
||||||
implicit-integer-sign-change:addrman.h
|
implicit-integer-sign-change:addrman.h
|
||||||
implicit-integer-sign-change:bech32.cpp
|
implicit-integer-sign-change:bech32.cpp
|
||||||
implicit-integer-sign-change:compat/stdin.cpp
|
implicit-integer-sign-change:compat/stdin.cpp
|
||||||
|
|
Loading…
Reference in a new issue