Skip to content

Commit 295a4f0

Browse files
MarcoFalkehebasto
authored andcommitted
Remove txmempool implicit-integer-sign-change sanitizer suppressions
1 parent 8e77019 commit 295a4f0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/txmempool.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ void CTxMemPoolEntry::UpdateDescendantState(int64_t modifySize, CAmount modifyFe
436436
nSizeWithDescendants += modifySize;
437437
assert(nSizeWithDescendants > 0);
438438
nModFeesWithDescendants += modifyFee;
439-
nCountWithDescendants += modifyCount;
439+
nCountWithDescendants += uint64_t(modifyCount);
440440
assert(int64_t(nCountWithDescendants) > 0);
441441
}
442442

@@ -445,7 +445,7 @@ void CTxMemPoolEntry::UpdateAncestorState(int64_t modifySize, CAmount modifyFee,
445445
nSizeWithAncestors += modifySize;
446446
assert(nSizeWithAncestors > 0);
447447
nModFeesWithAncestors += modifyFee;
448-
nCountWithAncestors += modifyCount;
448+
nCountWithAncestors += uint64_t(modifyCount);
449449
assert(int64_t(nCountWithAncestors) > 0);
450450
nSigOpCostWithAncestors += modifySigOps;
451451
assert(int(nSigOpCostWithAncestors) >= 0);

test/sanitizer_suppressions/ubsan

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ implicit-integer-sign-change:script/bitcoinconsensus.cpp
7878
implicit-integer-sign-change:script/interpreter.cpp
7979
implicit-integer-sign-change:serialize.h
8080
implicit-integer-sign-change:test/streams_tests.cpp
81-
implicit-integer-sign-change:txmempool.cpp
8281
implicit-integer-sign-change:zmq/zmqpublishnotifier.cpp
8382
implicit-signed-integer-truncation,implicit-integer-sign-change:chain.h
8483
implicit-signed-integer-truncation:addrman.cpp

0 commit comments

Comments
 (0)