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:
16
internal/auth/fuzz.go
Normal file
16
internal/auth/fuzz.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user