improve fuzz tests (#956)

This commit is contained in:
Alessandro Ros
2025-12-01 15:30:08 +01:00
committed by GitHub
parent 8511935286
commit 0ece7534e0
175 changed files with 1208 additions and 696 deletions

View File

@@ -0,0 +1,2 @@
go test fuzz v1
[]byte("\xd4\x00\x00\x00 00000000000\x06\x0e+4000000000000\x8800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\xb0")

View File

@@ -1,5 +0,0 @@
go test fuzz v1
[]byte("\x06\x0e+4000000000000\x88%%%%\x88000000")
bool(true)
[]byte("\x06")
bool(true)

View File

@@ -0,0 +1,2 @@
go test fuzz v1
[]byte("\xd4\x00\x00\x00 0D\xed00000000\x06\x0e+4000000000000\x81\xf000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000F\x00\x00\x00A0D\xee000100000000000000000000000000000000000000000000000000000000000000")

View File

@@ -0,0 +1,2 @@
go test fuzz v1
[]byte("4\x00\x00\x00\x8000000000000\x06\x0e+4000000000000\xe700000000000000000000000")

View File

@@ -1,5 +0,0 @@
go test fuzz v1
[]byte("\x06\x0e+4")
bool(true)
[]byte("0")
bool(true)

View File

@@ -1,5 +0,0 @@
go test fuzz v1
[]byte("\x06\x0e+4000000000000\x00")
bool(false)
[]byte("0")
bool(false)

View File

@@ -1,5 +0,0 @@
go test fuzz v1
[]byte("\x06\x0e+400000000000")
bool(false)
[]byte("0")
bool(true)

View File

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

View File

@@ -1,5 +0,0 @@
go test fuzz v1
[]byte("\x06\x0e+4000000000000\x88\x88000000")
bool(false)
[]byte("0")
bool(true)

View File

@@ -0,0 +1,2 @@
go test fuzz v1
[]byte("\xd4\x00\x00\x00 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000F\x00\x00\x00A000000000000000000000000000000000000000000000000000000000000000000000")

View File

@@ -1,5 +0,0 @@
go test fuzz v1
[]byte("\x06\x0e+4")
bool(false)
[]byte("000000000000\xc5")
bool(true)