mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
psbt: assertion for index in bounds
This commit is contained in:
parent
d1d96a9952
commit
973456ce23
@ -377,6 +377,7 @@ bool psbt_has_required_fields(struct wally_psbt *psbt)
|
||||
return false;
|
||||
|
||||
/* If is P2SH, redeemscript must be present */
|
||||
assert(psbt->tx->inputs[i].index < input->utxo->num_outputs);
|
||||
const u8 *outscript =
|
||||
wally_tx_output_get_script(tmpctx,
|
||||
&input->utxo->outputs[psbt->tx->inputs[i].index]);
|
||||
|
Loading…
Reference in New Issue
Block a user