smartbugs-curated/dataset/unchecked_low_level_calls/0x4051334adc52057aca7634538...

20 lines
510 B
Solidity

/*
* @source: etherscan.io
* @author: -
* @vulnerable_at_lines: 16
*/
pragma solidity ^0.4.24;
contract airdrop{
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);
}
return true;
}
}