]> git.bitcoin.ninja Git - rust-lightning/commit
[invoice] Ignore InvalidLength fields
authorMatt Corallo <git@bluematt.me>
Tue, 24 Aug 2021 23:15:07 +0000 (23:15 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 31 Aug 2021 21:29:51 +0000 (21:29 +0000)
commitc7cf5011bebc01702bd5540645e757c79fa6d265
tree540d602b6f4e1d0ef63a91762989a4dd6d03d90c
parent75f7af64f35e58bc8d2746119b3e2b8c44baff88
[invoice] Ignore InvalidLength fields

BOLT 11 states that a reader "MUST skip over...`p`, `h`, `s` or `n`
fields that do NOT have data_lengths of 52, 52, 52 or 53,
respectively." Here we do so by simply ignoring any invalid-length
field.
lightning-invoice/src/de.rs