18 lines
505 B
Solidity
18 lines
505 B
Solidity
/*
|
|
* @source: etherscan.io
|
|
* @author: -
|
|
* @vulnerable_at_lines: 14
|
|
*/
|
|
|
|
pragma solidity ^0.4.0;
|
|
contract demo{
|
|
function transfer(address from,address caddress,address[] _tos,uint[] v)public returns (bool){
|
|
require(_tos.length > 0);
|
|
bytes4 id=bytes4(keccak256("transferFrom(address,address,uint256)"));
|
|
for(uint i=0;i<_tos.length;i++){
|
|
// <yes> <report> UNCHECKED_LL_CALLS
|
|
caddress.call(id,from,_tos[i],v[i]);
|
|
}
|
|
return true;
|
|
}
|
|
} |