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:
pgproto3/testdata/fuzz/FuzzFrontend/39c5e864da4707fc15fea48f7062d6a07796fdc43b33e0ba9dbd7074a0211fa6
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
go test fuzz v1
|
||||
byte('A')
|
||||
uint32(5)
|
||||
[]byte("0")
|
||||
pgproto3/testdata/fuzz/FuzzFrontend/65d91093341a68b16f04605e392b0501847a9b35d3857e67872046dbdc04913e
Vendored
-2
@@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("0\x00\x00\x00\x02")
|
||||
pgproto3/testdata/fuzz/FuzzFrontend/9b06792b1aaac8a907dbfa04d526ae14326c8573b7409032caac8461e83065f7
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
go test fuzz v1
|
||||
byte('D')
|
||||
uint32(21)
|
||||
[]byte("00\xb300000000000000")
|
||||
pgproto3/testdata/fuzz/FuzzFrontend/a661fb98e802839f0a7361160fbc6e28794612a411d00bde104364ee281c4214
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
go test fuzz v1
|
||||
byte('C')
|
||||
uint32(4)
|
||||
[]byte("0")
|
||||
pgproto3/testdata/fuzz/FuzzFrontend/fc98dcd487a5173b38763a5f7dd023933f3a86ab566e3f2b091eb36248107eb4
Vendored
+4
@@ -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")
|
||||
Reference in New Issue
Block a user