Anemone95 / anemone95.github.io

http://anemone.top/
2 stars 1 forks source link

智能合约Checklist | Anemone's Blog #75

Open Anemone95 opened 4 years ago

Anemone95 commented 4 years ago

https://anemone.top/blockchain-%E6%99%BA%E8%83%BD%E5%90%88%E7%BA%A6checklist/

本文首次发表在Freebuf上,本文只做归档用。整形溢出(Arithmetic Issues)如下代码,如果没有assert判断,那么sellerBalance+value可能会超出uint上限制导致溢出。1234567891011pragma solidity ^0.4.15;contract Overflow { uint private sellerBalance=0;