diff options
author | Ava Chow <github@achow101.com> | 2024-07-18 16:51:42 -0400 |
---|---|---|
committer | Ava Chow <github@achow101.com> | 2024-07-18 16:51:42 -0400 |
commit | 6144aa21d0606e66ed6635975698e9a6456b5ca3 (patch) | |
tree | 8a20726152baddcab4c2aafea97b78471adf6932 /src/wallet/coincontrol.h | |
parent | 20ccb30b7af1c30cece2b0579ba88aa101583f07 (diff) | |
parent | fac932bf93d9bd8cb7bef93f04ecf48ea2ccf1d1 (diff) | |
download | bitcoin-6144aa21d0606e66ed6635975698e9a6456b5ca3.tar.xz |
Merge bitcoin/bitcoin#30444: rest: Reject negative outpoint index early in getutxos parsing
fac932bf93d9bd8cb7bef93f04ecf48ea2ccf1d1 refactor: Use util::Split to avoid a harmless unsigned-integer-overflow (MarcoFalke)
fab54db9f1d0e634f4a697480dbb87b87940dc5c rest: Reject negative outpoint index in getutxos parsing (MarcoFalke)
Pull request description:
In `rest_getutxos` outpoint indexes such as `+N` or `-N` are accepted. This should be harmless, because any index out of range should be treated as a non-existent utxo. However, a negative index can't exist ever, so it seems better to reject all signs, whether `+` or `-`.
ACKs for top commit:
achow101:
ACK fac932bf93d9bd8cb7bef93f04ecf48ea2ccf1d1
hodlinator:
ut-ACK fac932bf93d9bd8cb7bef93f04ecf48ea2ccf1d1
tdb3:
re ACK fac932bf93d9bd8cb7bef93f04ecf48ea2ccf1d1
danielabrozzoni:
ACK fac932bf93d9bd8cb7bef93f04ecf48ea2ccf1d1
brunoerg:
reACK fac932bf93d9bd8cb7bef93f04ecf48ea2ccf1d1
Tree-SHA512: 8f1a75248cb61e1c4beceded6ed170db83b07f30fbcf93a26acfffc00ec4546572366eff87907a7e1423d7d3a2a9e57a0a7a9bacb787c86463f842d7161c16bc
Diffstat (limited to 'src/wallet/coincontrol.h')
0 files changed, 0 insertions, 0 deletions