---
title: "Discussion on \"Solidity Attack Vectors #2 - Arithmetic Overflow and Underflow\" | Hashnode"
description: "Discussion on \"Solidity Attack Vectors #2 - Arithmetic Overflow and Underflow\". Overflow\nOverflow is a state uint (unsigned integer) reaches its maximum value, and the next element added will return the default value. uint8 can hold values within the range(0, 255), if the value of an arithmetic operation becomes greater than 255..."
url: "https://hashnode.com/posts/solidity-attack-vectors-2-arithmetic-overflow-and-underflow/63b988429b0902be82a47623"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Solidity Attack Vectors #2 - Arithmetic Overflow and Underflow](https://aagbotemi.hashnode.dev/solidity-attack-vectors-2-arithmetic-overflow-and-underflow?utm_source=hashnode&utm_medium=feed)

Overflow Overflow is a state uint (unsigned integer) reaches its maximum value, and the next element added will return the default value. uint8 can hold values within the range(0, 255), if the value of an arithmetic operation becomes greater than 255...

Jan 7, 2023 · 2 min read · aagbotemi.hashnode.dev  
Read the article

-   [#solidity](https://hashnode.com/tag/solidity)
-   [#smart-contracts](https://hashnode.com/tag/smart-contracts)
-   [#smart-contract-security](https://hashnode.com/tag/smart-contract-security)
-   [#underflow](https://hashnode.com/tag/underflow)
-   [#overflow](https://hashnode.com/tag/overflow)

## Written by

[Abiodun Awoyemi](https://hashnode.com/@gbotemi)

@gbotemi · Lagos, Nigeria

  
[View profile](https://hashnode.com/@gbotemi)

Software Developer || Technical Writer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
