We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45d543c commit 479589dCopy full SHA for 479589d
tests/fuzzers/abi/abifuzzer.go
@@ -161,7 +161,10 @@ func getUInt(fuzzer *fuzz.Fuzzer) int {
161
var i int
162
fuzzer.Fuzz(&i)
163
if i < 0 {
164
- i *= -1
+ i = -i
165
+ if i < 0 {
166
+ return 0
167
+ }
168
}
169
return i
170
tests/fuzzers/abi/abifuzzer_test.go
@@ -23,9 +23,7 @@ import (
23
// TestReplicate can be used to replicate crashers from the fuzzing tests.
24
// Just replace testString with the data in .quoted
25
func TestReplicate(t *testing.T) {
26
- testString := "N\xef\xbf0\xef\xbf99000000000000" +
27
- "000000000000"
28
-
+ testString := "\x20\x20\x20\x20\x20\x20\x20\x20\x80\x00\x00\x00\x20\x20\x20\x20\x00"
29
data := []byte(testString)
30
runFuzzer(data)
31
0 commit comments