jpeg: add fuzz tests

This commit is contained in:
aler9
2023-01-08 12:01:04 +01:00
parent 8a1dd54d61
commit c9d7b05308
15 changed files with 48 additions and 4 deletions

View File

@@ -67,3 +67,10 @@ func TestDefineQuantizationTableMarshal(t *testing.T) {
})
}
}
func FuzzDefineQuantizationTableUnmarshal(f *testing.F) {
f.Fuzz(func(t *testing.T, b []byte) {
var h DefineQuantizationTable
h.Unmarshal(b)
})
}