Skip to content

Commit 3797538

Browse files
authored
Merge pull request #1350 from crytic/fix-better-nearby-constants
Expanded the constant mining to get more nearby values
2 parents b573408 + 499e394 commit 3797538

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Echidna/ABI.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ mkValidAbiUInt i x = if x < bit i then Just $ AbiUInt i x else Nothing
5555

5656
makeNumAbiValues :: Integer -> [AbiValue]
5757
makeNumAbiValues i =
58-
let l f = f <$> commonTypeSizes <*> fmap fromIntegral ([i-1..i+1] ++ [(-i)-1 .. (-i)+1])
58+
let l f = f <$> commonTypeSizes <*> fmap fromIntegral ([i-3..i+3] ++ [(-i)-3 .. (-i)+3])
5959
in catMaybes (l mkValidAbiInt ++ l mkValidAbiUInt)
6060

6161
makeArrayAbiValues :: ByteString -> [AbiValue]

0 commit comments

Comments
 (0)