rust-bitcoin / rust-miniscript

Support for Miniscript and Output Descriptors for rust-bitcoin
Creative Commons Zero v1.0 Universal
343 stars 135 forks source link

Compiling invalid policy "thresh(1,thresh)" causes "index out of bounds: the len is 0 but the index is 0" #45

Closed practicalswift closed 4 years ago

practicalswift commented 5 years ago

Compiling invalid policy thresh(1,thresh) causes index out of bounds: the len is 0 but the index is 0.

Crash location:

https://github.com/apoelstra/rust-miniscript/blob/2aee5708e3e4f29a4d41301adc998d6b95fc4c76/src/policy/concrete.rs#L334-L335

sanket1729 commented 4 years ago

Fixed by #50