Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Integer overflow vulnerability not applicable in Solidity 0.8.0 and up #40

Open
matmilbury opened this issue Feb 16, 2022 · 0 comments
Open

Comments

@matmilbury
Copy link

Prior to Solidity 0.8.0, arithmetic operations would always wrap in case of under- or overflow leading to widespread use of libraries that introduce additional checks.

Since Solidity 0.8.0, all arithmetic operations revert on over- and underflow by default, thus making the use of these libraries unnecessary.

source

Haruxe added a commit to Haruxe/not-so-smart-contracts that referenced this issue Apr 25, 2022
crytic#40 (comment) closing this issue. The README now lets the reader know that this problem is only in older compiler versions.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant