-
Notifications
You must be signed in to change notification settings - Fork 996
New issue
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
For loop prevents reentrancy detection #1019
Comments
The issue also affects function bad3(ITarget target) public payable {
if (balance >= 10) {
for (uint256 i = 0; i < 10; i++) {
target.exec{ value: 1 ether }();
}
}
balance -= 10;
} |
I found another instance of this. Slither detects that |
This was reported before in #940 but wasn't answered, so I wanted to bring attention to it again and give simple reproduction instructions.
In the following code I expect
reentrancy-no-eth
to detect bothr1
andr2
as errors, but onlyr1
is detected.Is this a known limitation? Is it documented? Are there any plans to fix it? Thanks.
The text was updated successfully, but these errors were encountered: