Workspace IndexDev Notes › Integer overflow — arithmetic that wraps past zero

#171PoC

Integer overflow — arithmetic that wraps past zero

Before Solidity 0.8 made checks default, unchecked arithmetic could wrap a balance from near-zero to near-max, and the pattern survives today in unchecked blocks and other languages.

Not yet scoped.

Why

The PoC demonstrates an overflow in an unchecked block and contrasts it with SafeMath and native 0.8 checks, making the invisible wrap explicit.

How it works

Not yet built.

← All Dev Notes · Workspace Index · Top ↑

정수 오버플로 — 0을 지나 되감기는 산술

Solidity 0.8이 검사를 기본으로 만들기 전, 검사 없는 산술은 잔액을 0 근처에서 최댓값 근처로 되감을 수 있었고, 이 패턴은 오늘날 unchecked 블록과 다른 언어에 남아 있습니다.

아직 범위 미정.

이 PoC는 unchecked 블록의 오버플로를 시연하고 이를 SafeMath 및 0.8 네이티브 검사와 대조해, 보이지 않는 되감김을 드러냅니다.

동작 방식

아직 만들지 않음.

← 전체 개발 노트 · 워크스페이스 인덱스 · 맨 위 ↑