Open Anemone95 opened 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;
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;