]> git.bitcoin.ninja Git - rust-lightning/commit
Fuzz test for parsing InvoiceRequest
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 20 Jan 2023 19:34:34 +0000 (13:34 -0600)
committerMatt Corallo <git@bluematt.me>
Thu, 23 Feb 2023 22:19:54 +0000 (22:19 +0000)
commit4fe806837f9a63786d359960882faf25938fb93a
treea95a4c269d2a26940cf1ab421592f59025d095ce
parent6be30f98bdca6ae4abe4c4476dfbf66ae94e9dfa
Fuzz test for parsing InvoiceRequest

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