1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-19 14:57:04 +00:00

auth: Fuzz testing

This commit is contained in:
Alberto Bertogli
2017-04-22 14:52:18 +01:00
parent e543a03feb
commit 9f603da8de
11 changed files with 22 additions and 0 deletions

16
internal/auth/fuzz.go Normal file
View File

@@ -0,0 +1,16 @@
// Fuzz testing for package aliases.
// +build gofuzz
package auth
func Fuzz(data []byte) int {
// user, domain, passwd, err := DecodeResponse(string(data))
interesting := 0
_, _, _, err := DecodeResponse(string(data))
if err == nil {
interesting = 1
}
return interesting
}

View File

@@ -0,0 +1 @@
dUBkAHVAZABwYXNz

View File

@@ -0,0 +1 @@
dUBkAABwYXNz

View File

@@ -0,0 +1 @@
AHVAZABwYXNz

View File

@@ -0,0 +1 @@
dUBkAABwYXNz/w==

View File

@@ -0,0 +1 @@
w7FhY2FAw7FlcXVlAABjbGF2YXLDqQ==

View File

@@ -0,0 +1 @@
this is not base64 encoded

BIN
internal/auth/testdata/fuzz/corpus/x-001 vendored Normal file

Binary file not shown.

BIN
internal/auth/testdata/fuzz/corpus/x-002 vendored Normal file

Binary file not shown.

BIN
internal/auth/testdata/fuzz/corpus/x-003 vendored Normal file

Binary file not shown.

BIN
internal/auth/testdata/fuzz/corpus/x-004 vendored Normal file

Binary file not shown.