]> 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)
committerMatt Corallo <git@bluematt.me>
Thu, 23 Feb 2023 22:19:54 +0000 (22:19 +0000)
commit1821f91c68a1ec23bf7aa6904691ecbdbe33f01a
treea27eac58f0b76062fcac6f635615cd2146cf754d
parentc5d238a7b2c13807ec8b48be1a8d2d0fbb3a5ab3
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