Fix amount overflow in Invoice building
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 16 Feb 2023 02:17:18 +0000 (20:17 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 24 Feb 2023 00:25:50 +0000 (18:25 -0600)
commit9c2a3d090b618b98f2cd89c0193c4866331375ea
tree3e241e9fbe913ef6c026fc0dba4e6d985862ddb5
parent32ed69a2bd3971e16f099ca721fa43b633309c77
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