crypto/signify: fix fuzz test compilation

This commit is contained in:
David Klank 2025-12-12 18:49:47 +02:00 committed by GitHub
parent 16f50285b7
commit 71bbfc2da2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -56,7 +56,7 @@ func Fuzz(data []byte) int {
fmt.Printf("untrusted: %v\n", untrustedComment) fmt.Printf("untrusted: %v\n", untrustedComment)
fmt.Printf("trusted: %v\n", trustedComment) fmt.Printf("trusted: %v\n", trustedComment)
err = SignifySignFile(tmpFile.Name(), tmpFile.Name()+".sig", testSecKey, untrustedComment, trustedComment) err = SignFile(tmpFile.Name(), tmpFile.Name()+".sig", testSecKey, untrustedComment, trustedComment)
if err != nil { if err != nil {
panic(err) panic(err)
} }
@ -68,7 +68,7 @@ func Fuzz(data []byte) int {
signify = path signify = path
} }
_, err := exec.LookPath(signify) _, err = exec.LookPath(signify)
if err != nil { if err != nil {
panic(err) panic(err)
} }