Skip to content

Commit fadcd03

Browse files
author
MarcoFalke
committed
Fix unsigned integer overflow in LoadMempool
1 parent 133f73e commit fadcd03

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/validation.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4493,7 +4493,8 @@ bool LoadMempool(CTxMemPool& pool, CChainState& active_chainstate, FopenFn mocka
44934493
}
44944494
uint64_t num;
44954495
file >> num;
4496-
while (num--) {
4496+
while (num) {
4497+
--num;
44974498
CTransactionRef tx;
44984499
int64_t nTime;
44994500
int64_t nFeeDelta;

0 commit comments

Comments
 (0)