]> git.bitcoin.ninja Git - rust-lightning/commit
Fuzz test for parsing Refund
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 20 Jan 2023 19:01:47 +0000 (13:01 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 9 Feb 2023 01:02:17 +0000 (19:02 -0600)
commit0001260f745687aefb721c853a3052fd18b98a21
treedb0cbedb15b822b71c6032f3451772e7c7b2f2f2
parenta320a4daf54c5b8f8b14121477b78b194defffbd
Fuzz test for parsing Refund

A refund 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 Refund. Then compare the original bytes with
those obtained by re-serializing the Refund.
fuzz/src/bin/gen_target.sh
fuzz/src/bin/refund_deser_target.rs [new file with mode: 0644]
fuzz/src/lib.rs
fuzz/src/refund_deser.rs [new file with mode: 0644]
fuzz/targets.h
lightning/src/offers/payer.rs
lightning/src/offers/refund.rs