diff options
author | MarcoFalke <falke.marco@gmail.com> | 2022-01-28 17:36:44 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2022-02-07 15:20:36 +0100 |
commit | fac62056b56e0a28baf0b6f285752d83fbf96074 (patch) | |
tree | d80e4f4faf748ae9263726973d1575e5f5f42ef7 /src | |
parent | f7a36477a61b3719859ee4bb0795821c2aa6bd16 (diff) | |
download | bitcoin-fac62056b56e0a28baf0b6f285752d83fbf96074.tar.xz |
Fix integer sanitizer suppressions in validation.cpp
Diffstat (limited to 'src')
-rw-r--r-- | src/validation.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index f2fa1cf8d5..e20e2fe523 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -1787,8 +1787,9 @@ DisconnectResult CChainState::DisconnectBlock(const CBlock& block, const CBlockI error("DisconnectBlock(): transaction and undo data inconsistent"); return DISCONNECT_FAILED; } - for (unsigned int j = tx.vin.size(); j-- > 0;) { - const COutPoint &out = tx.vin[j].prevout; + for (unsigned int j = tx.vin.size(); j > 0;) { + --j; + const COutPoint& out = tx.vin[j].prevout; int res = ApplyTxInUndo(std::move(txundo.vprevout[j]), view, out); if (res == DISCONNECT_FAILED) return DISCONNECT_FAILED; fClean = fClean && res != DISCONNECT_UNCLEAN; |