formatprocessor: add fuzz tests (#2612)

This commit is contained in:
Alessandro Ros 2023-10-30 19:52:45 +01:00 committed by GitHub
parent 7fb3b749d5
commit a2c092ea44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 32 additions and 4 deletions

View file

@ -0,0 +1,2 @@
go test fuzz v1
[]byte("800")

View file

@ -0,0 +1,2 @@
go test fuzz v1
[]byte("8\x00\x00")

View file

@ -0,0 +1,2 @@
go test fuzz v1
[]byte("")

View file

@ -0,0 +1,2 @@
go test fuzz v1
[]byte("80")

View file

@ -0,0 +1,2 @@
go test fuzz v1
[]byte("a00")

View file

@ -0,0 +1,2 @@
go test fuzz v1
[]byte("a0\x00\x00")

View file

@ -0,0 +1,2 @@
go test fuzz v1
[]byte("0")

View file

@ -0,0 +1,2 @@
go test fuzz v1
[]byte("a000")