blockchains-security-toolkit/advanced_expert/vulnerabilities/arithmetic_errors
2023-06-19 09:19:01 -07:00
..
overflow.md Rename advanced_expert/vulnerabilities/overflow.md to advanced_expert/vulnerabilities/arithmetic_errors/overflow.md 2023-06-19 09:15:39 -07:00
overflow.sol Create overflow.sol 2023-06-19 09:18:04 -07:00
README.md add info on safemath 2023-06-19 09:19:01 -07:00

arithmetic errors


  • defaults:
    • solidity < 0.8: integers in overflow / underflow without any errors.
    • solidity >= 0.8: default behaviour of for overflow / underflow is to throw an error.
  • use SafeMath to prevent arithmetic overflow and underflow.