Skip to content

Commit

Permalink
Merge pull request #813 from crytic/dev-controlled-array-fp
Browse files Browse the repository at this point in the history
Remove false positive on array length detector
  • Loading branch information
montyly committed Mar 28, 2021
2 parents 965376a + f998018 commit 719d22c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ci_test_etherlime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm i -g etherlime
etherlime init
slither .

if [ $? -eq 8 ]
if [ $? -eq 7 ]
then
exit 0
fi
Expand Down
3 changes: 3 additions & 0 deletions slither/detectors/statements/array_length_assignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ def _detect(self):
Detect array length assignments
"""
results = []
# Starting from 0.6 .length is read only
if self.slither.solc_version >= "0.6.":
return results
for contract in self.contracts:
array_length_assignments = detect_array_length_assignment(contract)
if array_length_assignments:
Expand Down

0 comments on commit 719d22c

Please sign in to comment.