]> git.bitcoin.ninja Git - rust-lightning/commit
Fix amount overflow in Offer parsing and building
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 15 Feb 2023 22:43:41 +0000 (16:43 -0600)
committerMatt Corallo <git@bluematt.me>
Thu, 23 Feb 2023 22:19:54 +0000 (22:19 +0000)
commit83d85ad44f5f48616cd2582356a709ef98fb58dd
tree84c699363f787e0f5fb0f09265631e07f0df22ce
parentd24567b89820843de983815e0b6ece2f52737256
Fix amount overflow in Offer parsing and building

An overflow can occur when multiplying the offer amount by the requested
quantity when checking if the given amount is enough. Return an error
instead of overflowing.
lightning/src/offers/invoice_request.rs
lightning/src/offers/offer.rs