]> git.bitcoin.ninja Git - rust-lightning/commit
Fix amount overflow in Invoice building 1977-fuzz-head
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 16 Feb 2023 02:17:18 +0000 (20:17 -0600)
committerMatt Corallo <git@bluematt.me>
Thu, 23 Feb 2023 22:19:54 +0000 (22:19 +0000)
commitc07ff257462ed0d3621413777aedc0618d79f6f5
treed4f398004e27f6004bb1e4409b4a6f76668dc3a6
parent83d85ad44f5f48616cd2582356a709ef98fb58dd
Fix amount overflow in Invoice building

An overflow can occur when multiplying the offer amount by the requested
quantity when no amount is given in the request. Return an error instead
of overflowing.
lightning/src/offers/invoice.rs