]> git.bitcoin.ninja Git - rust-lightning/commit
Fuzz test for parsing Invoice
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 20 Jan 2023 22:30:45 +0000 (16:30 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 24 Feb 2023 00:25:49 +0000 (18:25 -0600)
commit16168d4c07c6f5f4c636b58cdec914f7e28126b4
treebf2854f4f43b6decbbce8d083c46fcc52511f4a9
parente049e97993b292337e32864f47fa0a445d37e047
Fuzz test for parsing Invoice

An invoice is serialized as a TLV stream and encoded as bytes. Add a
fuzz test that parses the TLV stream and deserializes the underlying
Invoice. Then compare the original bytes with those obtained by
re-serializing the Invoice.
fuzz/src/bin/gen_target.sh
fuzz/src/bin/invoice_deser_target.rs [new file with mode: 0644]
fuzz/src/invoice_deser.rs [new file with mode: 0644]
fuzz/src/lib.rs
fuzz/targets.h