]> git.bitcoin.ninja Git - rust-lightning/commit
Fix bug in onion payment payload decode
authorValentine Wallace <vwallace@protonmail.com>
Sat, 6 Aug 2022 02:19:50 +0000 (22:19 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Mon, 15 Aug 2022 15:41:56 +0000 (11:41 -0400)
commita23681fde10b08d7a838c27ffb851915ccf784ad
tree17fa0be67fd1404b82c23173d6d4e020ea176f53
parentdcef41d17b822c7d6da36239101cef96df011f61
Fix bug in onion payment payload decode

Prior to this change, we could have failed to decode a valid payload of size
>253. This is because we were decoding the length (a BigSize, big-endian) as a
VarInt (little-endian).

Found in #1652.
lightning/src/ln/msgs.rs