Fuzz test for parsing Invoice
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 20 Jan 2023 22:30:45 +0000 (16:30 -0600)
committerMatt Corallo <git@bluematt.me>
Thu, 23 Feb 2023 22:19:54 +0000 (22:19 +0000)
commitad0421d957da1405c45f886c9f3c98b86b3cab3c
tree9fa2c95bf257053870265d8308f6a075a0d019ef
parent4fe806837f9a63786d359960882faf25938fb93a
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