bitcoin/test/sanitizer_suppressions
Ryan Ofsky 63e8fc912c ci: add getchaintxstats ubsan suppressions
Add ubsan suppressions for integer overflows in the getchaintxstats RPC.

getchainstatstx line "int nTxDiff = pindex->nChainTx - past_block.nChainTx" can
trigger ubsan integer overflows when assumeutxo snapshots are loaded, from
subtracting unsigned values and assigning the result to a signed int.

The overflow behavior probably exists in current code but is hard to trigger
because it would require calling getchainstatstx at the right time with
specific parameters as background blocks are being downloaded. But the overflow
behavior becomes easier to trigger in the upcoming commit removing fake
nChainTx values, so a suppression needs to be added before then for CI to pass.

getchainstatstx should probably be improved separately in another PR to not
need this suppression, and handle edge cases and missing nChainTx values more
carefully.
2024-03-18 11:28:40 -05:00
..
lsan sanitizers: remove GetRNGState lsan suppression 2023-03-30 14:10:35 +01:00
tsan doc, test: Document steps to reproduce TSan warning for `libdb` 2023-05-15 13:28:25 +01:00
ubsan ci: add getchaintxstats ubsan suppressions 2024-03-18 11:28:40 -05:00