]> 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)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 24 Feb 2023 00:24:41 +0000 (18:24 -0600)
commite049e97993b292337e32864f47fa0a445d37e047
tree07f56e2a700d8e70fbd022f96f1f7d9c85431ab5
parent9a657092396de98aa220149a5fbfd8dbded8512a
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