mirror of https://github.com/ConsenSys/mythril
blockchainethereumsmart-contractssoliditysecurityprogram-analysissecurity-analysissymbolic-execution
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
388 B
20 lines
388 B
6 years ago
|
pragma solidity ^0.4.16;
|
||
|
|
||
|
|
||
|
contract IntegerOverflow2 {
|
||
|
uint256 public count = 7;
|
||
|
mapping(address => uint256) balances;
|
||
|
|
||
|
function batchTransfer(address[] _receivers, uint256 _value) public returns(bool){
|
||
|
uint cnt = _receivers.length;
|
||
|
uint256 amount = uint256(cnt) * _value;
|
||
|
|
||
|
require(cnt > 0 && cnt <= 20);
|
||
|
|
||
|
balances[msg.sender] -=amount;
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
}
|