From d9bd28de799f8ef8a3b869e4d008555422c3781d Mon Sep 17 00:00:00 2001 From: eugene Date: Thu, 14 Sep 2023 10:50:41 -0400 Subject: [PATCH] mssmt: fuzz test for CompressedProof --- mssmt/fuzz_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 mssmt/fuzz_test.go diff --git a/mssmt/fuzz_test.go b/mssmt/fuzz_test.go new file mode 100644 index 000000000..80ca090b5 --- /dev/null +++ b/mssmt/fuzz_test.go @@ -0,0 +1,13 @@ +package mssmt + +import ( + "bytes" + "testing" +) + +func FuzzCompressedProof(f *testing.F) { + f.Fuzz(func(t *testing.T, data []byte) { + var compressedProof CompressedProof + _ = compressedProof.Decode(bytes.NewReader(data)) + }) +}