-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Investigate feasibility of overflow checks #8467
Comments
What we also have to consider: Do we want checks for truncation during type conversion? Is |
I think it would be interesting to force checks there as well. If someone wants to safely convert to a smaller type, they'd need to properly adjust the value first. |
It seems we currently do not check overflow for explicit type conversion when compiling via yul. |
Community feedback call: #9054 |
Outcome of community call:
|
Me might want to add forced overflow checks for 0.7.0 leading to an invalid opcode. We should check if it is possible to implement common contracts with require checks such that the invalid opcode is not reachable.
The text was updated successfully, but these errors were encountered: