]> git.bitcoin.ninja Git - rust-lightning/commit
Fuzz test for parsing Offer
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 20 Jan 2023 18:31:17 +0000 (12:31 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 9 Feb 2023 00:47:48 +0000 (18:47 -0600)
commit53d2d473605e29c52d01ddfa625f628be456861c
treeef47b8a3d49a721708192de586e618c5fb975e3c
parent153d831ccc931683dbd505bdd07c915409e9a9e1
Fuzz test for parsing Offer

An offer is serialized as a TLV stream and encoded in bech32 without a
checksum. Add a fuzz test that parses the unencoded TLV stream and
deserializes the underlying Offer. Then compare the original bytes with
those obtained by re-serializing the Offer.
fuzz/src/bin/gen_target.sh
fuzz/src/bin/offer_deser_target.rs [new file with mode: 0644]
fuzz/src/lib.rs
fuzz/src/offer_deser.rs [new file with mode: 0644]
fuzz/targets.h
lightning/src/offers/offer.rs