We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
slither-mutate generates some mutations that are semantically equivalent in code that performs equality checks between unsigned integers and zero.
Example ROR mutation: INFO:Slither-Mutate:[ROR] Line 162: 'amount == 0' ==> 'amount <= 0' --> UNCAUGHT
INFO:Slither-Mutate:[ROR] Line 162: 'amount == 0' ==> 'amount <= 0' --> UNCAUGHT
amount is an unsigned integer, so comparing <=0 instead of ==0 is semantically equivalent
contract Test{ function deposit( uint256 amount) external { if (amount == 0) { revert(); } }
Slither 0.11.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the issue:
slither-mutate generates some mutations that are semantically equivalent in code that performs equality checks between unsigned integers and zero.
Example ROR mutation:
INFO:Slither-Mutate:[ROR] Line 162: 'amount == 0' ==> 'amount <= 0' --> UNCAUGHT
amount is an unsigned integer, so comparing <=0 instead of ==0 is semantically equivalent
Code example to reproduce the issue:
Version:
Slither 0.11.0
Relevant log output:
The text was updated successfully, but these errors were encountered: