diff options
| author | Bitflash <admin@bitflash.network> | 2026-08-07 16:46:15 -0300 |
|---|---|---|
| committer | Bitflash <admin@bitflash.network> | 2026-08-07 16:46:15 -0300 |
| commit | 060a37de4a1f08ffb5939c8fc47a805c5d0d0024 (patch) | |
| tree | 11742f480ae54265d3817bc720213f985587f9bf /src/rpc.cpp | |
| parent | 78cf0c3cb6752bd36bbc8fe7017d5d60cca13da7 (diff) | |
bignum: shift setint64 in unsigned space to avoid signed overflow UB
setint64() extracted big-endian bytes with a signed left shift (n <<= 8).
When the top byte is set that overflows int64 -- undefined behaviour, which
the script fuzzer flagged under UBSan (bignum.h:158). The result was correct
on two's-complement hardware, so this is a latent UB inherited from the
original 0.1 code, not a behaviour change. Do the shift on a uint64.
Diffstat (limited to 'src/rpc.cpp')
0 files changed, 0 insertions, 0 deletions