upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/main_gui.cpp
diff options
context:
space:
mode:
authorBitflash <admin@bitflash.network>2026-08-07 16:46:15 -0300
committerBitflash <admin@bitflash.network>2026-08-07 16:46:15 -0300
commit060a37de4a1f08ffb5939c8fc47a805c5d0d0024 (patch)
tree11742f480ae54265d3817bc720213f985587f9bf /src/main_gui.cpp
parent78cf0c3cb6752bd36bbc8fe7017d5d60cca13da7 (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/main_gui.cpp')
0 files changed, 0 insertions, 0 deletions