fuzz: change return values to 1 rather than 0 or -1
This allows gofuzz to store the mutating input as coverage if it reaches any new coverage, even if it didn't make it to the end of the test.
This commit is contained in:
19 files changed
+24
-24
No files matched your search
@@ -11,7 +11,7 @@ import (
|
||||
func Fuzz_static_actthree(data []byte) int {
|
||||
// Check if data is large enough.
|
||||
if len(data) < brontide.ActThreeSize {
|
||||
return -1
|
||||
return 1
|
||||
}
|
||||
|
||||
// This will return brontide machines with static keys.
|
||||
|
||||
Reference in new issue
Block a user