Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Understanding arithmetic overflow/underflows in Rust and Solana smart contracts (medium.com/coinmonks)
3 points by lcamtufx on Oct 24, 2021 | hide | past | favorite | 1 comment


Integer overflow/underflows are surprisingly common in smart contracts, because blockchain applications often compute math over financial data. For many developers, it may be a misconception that Rust is memory-safe so it is free of arithmetic overflow/underflows. This article explains why Rust programs still suffer from arithmetic errors, how these issues affect blockchain security, and how to deal with them in smart contracts.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: