mess around with fuzzing

This commit is contained in:
Joel Wetzell
2026-05-23 07:43:15 -05:00
parent 2cb6487036
commit 207a18d18e
3 changed files with 18 additions and 0 deletions
+8
View File
@@ -113,3 +113,11 @@ func BenchmarkArtDmxMarshalBinary(b *testing.B) {
}
}
}
func FuzzArtDmxUnmarshalBinary(f *testing.F) {
f.Add([]byte{65, 114, 116, 45, 78, 101, 116, 0, 0, 80, 0, 14, 237, 0, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0})
f.Fuzz(func(t *testing.T, data []byte) {
artDmx := artnet.ArtDmx{}
artDmx.UnmarshalBinary(data)
})
}