2
0

Better fuzz testing and fix several bugs it found

Fix infinite loop in AuthenticationSASL.Decode
Fix panic in CommandComplete.Decode
Fix panic in DataRow.Decode
Fix panic in NotificationResponse.Decode
This commit is contained in:
Jack Christensen
2022-07-23 16:13:06 -05:00
parent 9d0f27bc4b
commit 7f382f5190
11 changed files with 67 additions and 16 deletions
@@ -0,0 +1,4 @@
go test fuzz v1
byte('A')
uint32(5)
[]byte("0")
@@ -1,2 +0,0 @@
go test fuzz v1
[]byte("0\x00\x00\x00\x02")
@@ -0,0 +1,4 @@
go test fuzz v1
byte('D')
uint32(21)
[]byte("00\xb300000000000000")
@@ -0,0 +1,4 @@
go test fuzz v1
byte('C')
uint32(4)
[]byte("0")
@@ -0,0 +1,4 @@
go test fuzz v1
byte('R')
uint32(13)
[]byte("\x00\x00\x00\n0\x12\xebG\x8dI']G\xdac\x95\xb7\x18\xb0\x02\xe8m\xc2\x00\xef\x03\x12\x1b\xbdj\x10\x9f\xf9\xeb\xb8")