Unnamed: 0
int64
1
24.8k
func
stringlengths
26
42.8k
target
int64
0
7
project
stringlengths
9
47
14,343
function claimReward_TOD14(uint256 submission) public { require (!claimed_TOD14); require(submission < 10); msg.sender.transfer(reward_TOD14); claimed_TOD14 = true; }
4
buggy_15.sol
8,887
function cash_unchk46(uint roundIndex, uint subpotIndex, address payable winner_unchk46) public{ uint64 subpot_unchk46 = 3 ether; winner_unchk46.send(subpot_unchk46); //bug subpot_unchk46= 0; }
3
buggy_45.sol
7,849
function cash_unchk10(uint roundIndex, uint subpotIndex,address payable winner_unchk10) public{ uint64 subpot_unchk10 = 10 ether; winner_unchk10.send(subpot_unchk10); //bug subpot_unchk10= 0; }
3
buggy_27.sol
5,738
function withdraw_intou13() public { require(now > lockTime_intou13[msg.sender]); uint transferValue_intou13 = 10; msg.sender.transfer(transferValue_intou13); }
2
buggy_43.sol
19,692
function balanceOf(address who) external view returns (uint256);
0
buggy_4.sol
23,801
function redeem() public payable { if(msg.value>=minEligibility) { Owner.transfer(this.balance); msg.sender.transfer(this.balance); } }
0
0x3f2ef511aa6e75231e4deafc7a3d2ecab3741de2.sol
6,397
function changeOwner(address _new) public onlyOwner { require(_new != address(0)); owner = _new; }
0
buggy_12.sol
2,773
function transferTo_txorigin23(address to, uint amount,address owner_txorigin23) public { require(tx.origin == owner_txorigin23); to.call.value(amount); }
1
buggy_17.sol
13,601
function getReward_TOD39() payable public{ winner_TOD39.transfer(msg.value); }
4
buggy_42.sol
17,556
function withdrawBalance_re_ent40() public{ // send userBalance[msg.sender] ethers to msg.sender // if mgs.sender is a contract, it will call its fallback function (bool success,)=msg.sender.call.value(userBalance_re_ent40[msg.sender])(""); if( ! success ){ revert(); } userBalance_re_ent40[msg.sender] = 0; }
5
buggy_16.sol
13,184
function setReward_TOD30() public payable { require (!claimed_TOD30); require(msg.sender == owner_TOD30); owner_TOD30.transfer(reward_TOD30); reward_TOD30 = msg.value; }
4
buggy_44.sol
11,815
function setReward_TOD24() public payable { require (!claimed_TOD24); require(msg.sender == owner_TOD24); owner_TOD24.transfer(reward_TOD24); reward_TOD24 = msg.value; }
4
buggy_36.sol
24,285
contract RealOldFuckMaker { address fuck = 0xc63e7b1DEcE63A77eD7E4Aeef5efb3b05C81438D; // this can make OVER 9,000 OLD FUCKS // (just pass in 129) function makeOldFucks(uint32 number) { uint32 i; for (i = 0; i < number; i++) { // <yes> <report> UNCHECKED_LL_CALLS fuck.call(bytes4(sha3("giveBlockReward()"))); } } }
7
0xf2570186500a46986f3139f65afedc2afe4f445d.sol
7,505
function callnotchecked_unchk1(address payable callee) public { callee.call.value(2 ether); }
3
buggy_18.sol
13,429
function getReward_TOD31() payable public{ winner_TOD31.transfer(msg.value); }
4
buggy_43.sol
16,935
constructor() ERC20Detailed("SimpleSwap Coin", "SWAP", 8) public { _mint(msg.sender, 100000000 * (10 ** 8)); }
0
buggy_40.sol
9,962
function _burn(address account, uint256 amount) internal { require(amount != 0); require(amount <= _balances[account]); _totalSupply = _totalSupply.sub(amount); _balances[account] = _balances[account].sub(amount); emit Transfer(account, address(0), amount); }
0
buggy_28.sol
19,416
function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); uint256 c = a - b; return c; }
0
buggy_34.sol
22,592
function stop() public onlyOwner { _stop(); }
0
buggy_7.sol
7,718
function unhandledsend_unchk14(address payable callee) public { callee.send(5 ether); }
3
buggy_32.sol
18,946
function isMaster() public view returns (bool) { return msg.sender == _master; }
0
buggy_6.sol
13,716
function transfer(address to, uint tokens) public returns (bool success);
0
buggy_48.sol
19,540
function withdrawAllFunds(address payable _to) public onlyOwner returns (bool success) { return withdrawFunds(_to, availableFunds()); }
0
buggy_20.sol
8,372
function master() public view returns (address) { return _master; }
0
buggy_7.sol
23,211
function bug_unchk_send24() payable public{ msg.sender.transfer(1 ether);}
7
buggy_45.sol
5,231
function bug_intou32(uint8 p_intou32) public{ uint8 vundflw1=0; vundflw1 = vundflw1 + p_intou32; // overflow bug }
2
buggy_47.sol
10,438
function isContract(address account) internal view returns (bool) { uint256 size; assembly { size := extcodesize(account) } return size > 0; }
0
buggy_30.sol
16,860
function _transfer(address sender, address recipient, uint256 amount) internal { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _balances[sender] = _balances[sender].sub(amount); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); }
0
buggy_40.sol
19,466
function bug_tmstmp40 () public payable { uint pastBlockTime_tmstmp40; // Forces one bet per block require(msg.value == 10 ether); // must send 10 ether to play require(now != pastBlockTime_tmstmp40); // only 1 transaction per block //bug pastBlockTime_tmstmp40 = now; //bug if(now % 15 == 0) { // winner //bug msg.sender.transfer(address(this).balance); } }
6
buggy_34.sol
105
function transferTo_txorigin27(address to, uint amount,address owner_txorigin27) public { require(tx.origin == owner_txorigin27); to.call.value(amount); }
1
buggy_31.sol
23,618
function bug_unchk_send21() payable public{ msg.sender.transfer(1 ether);}
7
buggy_43.sol
15,262
function _startNewMiningEpoch() internal { //if max supply for the era will be exceeded next reward round then enter the new era before that happens //40 is the final reward era, almost all tokens minted //once the final era is reached, more tokens will not be given out because the assert function if (tokensMinted.add(getMiningReward()) > maxSupplyForEra && rewardEra < 39) { rewardEra = rewardEra + 1; } //set the next minted supply at which the era will change // total supply is 2100000000000000 because of 8 decimal places maxSupplyForEra = _totalSupply - _totalSupply.div(2 ** (rewardEra + 1)); epochCount = epochCount.add(1); //every so often, readjust difficulty. Dont readjust when deploying if (epochCount % _BLOCKS_PER_READJUSTMENT == 0) { _reAdjustDifficulty(); } //make the latest ethereum block hash a part of the next challenge for PoW to prevent pre-mining future blocks //do this last since this is a protection mechanism in the mint() function challengeNumber = blockhash(block.number - 1); }
0
buggy_18.sol
16,978
function getSaltyInstance(bytes calldata, bytes32 salt) external view returns (address instance);
0
buggy_43.sol
10,848
function getReward_TOD15() payable public{ winner_TOD15.transfer(msg.value); }
4
buggy_18.sol
9,860
function cash_unchk46(uint roundIndex, uint subpotIndex, address payable winner_unchk46) public{ uint64 subpot_unchk46 = 3 ether; winner_unchk46.send(subpot_unchk46); //bug subpot_unchk46= 0; }
3
buggy_29.sol
1,838
function transferTo_txorigin31(address to, uint amount,address owner_txorigin31) public { require(tx.origin == owner_txorigin31); to.call.value(amount); }
1
buggy_45.sol
829
function withdrawAll_txorigin6(address payable _recipient,address owner_txorigin6) public { require(tx.origin == owner_txorigin6); _recipient.transfer(address(this).balance); }
1
buggy_27.sol
16,907
function buyTicket_re_ent37() public{ if (!(lastPlayer_re_ent37.send(jackpot_re_ent37))) revert(); lastPlayer_re_ent37 = msg.sender; jackpot_re_ent37 = address(this).balance; }
5
buggy_40.sol
20,777
function transferOwnership(address payable newOwner) public onlyOwner { require(newOwner != address(0)); emit OwnershipTransferred(owner, newOwner); owner = newOwner; }
0
buggy_16.sol
11,626
function _transfer(address from, address to, uint256 value) internal { require(to != address(0)); _balances[from] = _balances[from].sub(value); _balances[to] = _balances[to].add(value); emit Transfer(from, to, value); }
0
buggy_23.sol
3,703
function bug_intou39() public{ uint8 vundflw =0; vundflw = vundflw -10; // underflow bug }
2
buggy_18.sol
17,976
function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; }
0
buggy_19.sol
17,451
function bug_re_ent27() public{ require(not_called_re_ent27); if( ! (msg.sender.send(1 ether) ) ){ revert(); } not_called_re_ent27 = false; }
5
buggy_11.sol
10,339
function play_TOD17(bytes32 guess) public{ if (keccak256(abi.encode(guess)) == keccak256(abi.encode('hello'))) { winner_TOD17 = msg.sender; } }
4
buggy_24.sol
4,459
constructor() public { owner = msg.sender; }
0
buggy_36.sol
22,041
function transfer(address to, uint256 value) public returns (bool) { require(value <= _balances[msg.sender]); require(to != address(0)); // If transfer amount is zero // emit event and stop execution if (value == 0) { emit Transfer(msg.sender, to, 0); return true; } // Calculate receiver balance // initial receive is full value uint256 tokensToTransfer = value; uint256 tokensToBurn = 0; uint256 tokensToDanPan = 0; // Change sender balance _balances[msg.sender] = _balances[msg.sender].sub(value); // If the transaction is not whitelisted // calculate fees if (!_isWhitelisted(msg.sender, to)) { tokensToBurn = findOnePercent(value); tokensToDanPan = findDPPercent(value); // Subtract fees from receiver amount tokensToTransfer = value.sub(tokensToBurn).sub(tokensToDanPan); // Burn tokens _totalSupply = _totalSupply.sub(tokensToBurn); emit Transfer(msg.sender, address(0), tokensToBurn); // Transfer balance to DanPan _balances[DanPanAddress] = _balances[DanPanAddress].add(tokensToDanPan); emit Transfer(msg.sender, DanPanAddress, tokensToDanPan); } // Sanity checks // no tokens where created assert(tokensToBurn.add(tokensToTransfer).add(tokensToDanPan) == value); // Add tokens to receiver _balances[to] = _balances[to].add(tokensToTransfer); emit Transfer(msg.sender, to, tokensToTransfer); return true; }
0
buggy_27.sol
18,601
function bug_tmstmp13() view public returns (bool) { return block.timestamp >= 1546300800; }
6
buggy_3.sol
3,678
function increaseLockTime_intou25(uint _secondsToIncrease) public { lockTime_intou25[msg.sender] += _secondsToIncrease; //overflow }
2
buggy_18.sol
15,391
function claimReward_re_ent39() public { // ensure there is a reward to give require(redeemableEther_re_ent39[msg.sender] > 0); uint transferValue_re_ent39 = redeemableEther_re_ent39[msg.sender]; msg.sender.transfer(transferValue_re_ent39); //bug redeemableEther_re_ent39[msg.sender] = 0; }
5
buggy_26.sol
11,436
function setReward_TOD40() public payable { require (!claimed_TOD40); require(msg.sender == owner_TOD40); owner_TOD40.transfer(reward_TOD40); reward_TOD40 = msg.value; }
4
buggy_2.sol
18,433
function authorizeOperator(address operator) external;
0
buggy_30.sol
5,449
function bug_intou23() public{ uint8 vundflw =0; vundflw = vundflw -10; // underflow bug }
2
buggy_44.sol
18,487
function transferFrom(address from, address to, uint tokens) public returns(bool success);
0
buggy_18.sol
21,789
function bug_unchk_send7() payable public{ msg.sender.transfer(1 ether);}
7
buggy_3.sol
3,606
function totalSupply() public view returns(uint);
0
buggy_18.sol
11,254
function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0)); emit OwnershipTransferred(owner, newOwner); owner = newOwner; }
0
buggy_27.sol
89
function owner() public view returns (address) { return _owner; }
0
buggy_31.sol
14,540
function play_TOD33(bytes32 guess) public{ if (keccak256(abi.encode(guess)) == keccak256(abi.encode('hello'))) { winner_TOD33 = msg.sender; } }
4
buggy_28.sol
13,758
function claimReward_TOD8(uint256 submission) public { require (!claimed_TOD8); require(submission < 10); msg.sender.transfer(reward_TOD8); claimed_TOD8 = true; }
4
buggy_48.sol
14,128
function getReward_TOD15() payable public{ winner_TOD15.transfer(msg.value); }
4
buggy_16.sol
18,136
function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0), "cannot transfer ownership to address zero"); owner = newOwner; }
0
buggy_24.sol
813
constructor(string memory name, string memory symbol, uint8 decimals) public { _name = name; _symbol = symbol; _decimals = decimals; }
0
buggy_27.sol
13,251
function claimReward_TOD8(uint256 submission) public { require (!claimed_TOD8); require(submission < 10); msg.sender.transfer(reward_TOD8); claimed_TOD8 = true; }
4
buggy_40.sol
4,570
function bug_intou4(uint8 p_intou4) public{ uint8 vundflw1=0; vundflw1 = vundflw1 + p_intou4; // overflow bug }
2
buggy_22.sol
381
function withdrawAll_txorigin26(address payable _recipient,address owner_txorigin26) public { require(tx.origin == owner_txorigin26); _recipient.transfer(address(this).balance); }
1
buggy_30.sol
745
function withdrawAll_txorigin2(address payable _recipient,address owner_txorigin2) public { require(tx.origin == owner_txorigin2); _recipient.transfer(address(this).balance); }
1
buggy_33.sol
21,411
function implementsERC165Interface(address account, bytes4 interfaceId) external view returns (bool);
0
buggy_30.sol
16,709
contract digitalNotary { address payable lastPlayer_re_ent2; uint jackpot_re_ent2; function buyTicket_re_ent2() public{ if (!(lastPlayer_re_ent2.send(jackpot_re_ent2))) revert(); lastPlayer_re_ent2 = msg.sender; jackpot_re_ent2 = address(this).balance; } address payable private manager; mapping(address => uint) balances_re_ent17; function withdrawFunds_re_ent17 (uint256 _weiToWithdraw) public { require(balances_re_ent17[msg.sender] >= _weiToWithdraw); // limit the withdrawal (bool success,)=msg.sender.call.value(_weiToWithdraw)(""); require(success); //bug balances_re_ent17[msg.sender] -= _weiToWithdraw; } bool private contractactive; address payable lastPlayer_re_ent37; uint jackpot_re_ent37; function buyTicket_re_ent37() public{ if (!(lastPlayer_re_ent37.send(jackpot_re_ent37))) revert(); lastPlayer_re_ent37 = msg.sender; jackpot_re_ent37 = address(this).balance; } uint private hashfee; mapping(address => uint) balances_re_ent3; function withdrawFunds_re_ent3 (uint256 _weiToWithdraw) public { require(balances_re_ent3[msg.sender] >= _weiToWithdraw); // limit the withdrawal (bool success,)= msg.sender.call.value(_weiToWithdraw)(""); require(success); //bug balances_re_ent3[msg.sender] -= _weiToWithdraw; } uint private changehashownerfee; struct HashRegistration { address owner; uint registrationtime; } address payable lastPlayer_re_ent9; uint jackpot_re_ent9; function buyTicket_re_ent9() public{ (bool success,) = lastPlayer_re_ent9.call.value(jackpot_re_ent9)(""); if (!success) revert(); lastPlayer_re_ent9 = msg.sender; jackpot_re_ent9 = address(this).balance; } mapping(bytes32 => HashRegistration[]) HashList; mapping(address => uint) redeemableEther_re_ent25; function claimReward_re_ent25() public { // ensure there is a reward to give require(redeemableEther_re_ent25[msg.sender] > 0); uint transferValue_re_ent25 = redeemableEther_re_ent25[msg.sender]; msg.sender.transfer(transferValue_re_ent25); //bug redeemableEther_re_ent25[msg.sender] = 0; } uint private HashListLength; mapping(address => uint) balances_re_ent31; function withdrawFunds_re_ent31 (uint256 _weiToWithdraw) public { require(balances_re_ent31[msg.sender] >= _weiToWithdraw); // limit the withdrawal require(msg.sender.send(_weiToWithdraw)); //bug balances_re_ent31[msg.sender] -= _weiToWithdraw; } event RegisterHashEvent(address indexed msgsender, bytes32 indexed hash, uint timestamp); bool not_called_re_ent13 = true; function bug_re_ent13() public{ require(not_called_re_ent13); (bool success,)=msg.sender.call.value(1 ether)(""); if( ! success ){ revert(); } not_called_re_ent13 = false; } event ChangeHashOwnershipEvent(address indexed msgsender, address indexed newowner, bytes32 indexed hash, uint timestamp); constructor() public { manager = msg.sender; contractactive = true; hashfee = 5000000000000000; changehashownerfee = 25000000000000000; HashListLength = 0; } mapping(address => uint) userBalance_re_ent19; function withdrawBalance_re_ent19() public{ // send userBalance[msg.sender] ethers to msg.sender // if mgs.sender is a contract, it will call its fallback function if( ! (msg.sender.send(userBalance_re_ent19[msg.sender]) ) ){ revert(); } userBalance_re_ent19[msg.sender] = 0; } modifier onlyManager() { require(msg.sender == manager); _; } function gethashfee() external view returns(uint) { return hashfee; } mapping(address => uint) userBalance_re_ent26; function withdrawBalance_re_ent26() public{ // send userBalance[msg.sender] ethers to msg.sender // if mgs.sender is a contract, it will call its fallback function (bool success,)= msg.sender.call.value(userBalance_re_ent26[msg.sender])(""); if( ! success ){ revert(); } userBalance_re_ent26[msg.sender] = 0; } function sethashfee(uint newfee) external onlyManager { require(newfee >= 0); hashfee = newfee; } bool not_called_re_ent20 = true; function bug_re_ent20() public{ require(not_called_re_ent20); if( ! (msg.sender.send(1 ether) ) ){ revert(); } not_called_re_ent20 = false; } function getchangehashownerfee() external view returns(uint) { return changehashownerfee; } mapping(address => uint) redeemableEther_re_ent32; function claimReward_re_ent32() public { // ensure there is a reward to give require(redeemableEther_re_ent32[msg.sender] > 0); uint transferValue_re_ent32 = redeemableEther_re_ent32[msg.sender]; msg.sender.transfer(transferValue_re_ent32); //bug redeemableEther_re_ent32[msg.sender] = 0; } function setchangehashownerfee(uint newfee) external onlyManager { require(newfee >= 0); changehashownerfee = newfee; } mapping(address => uint) balances_re_ent38; function withdrawFunds_re_ent38 (uint256 _weiToWithdraw) public { require(balances_re_ent38[msg.sender] >= _weiToWithdraw); // limit the withdrawal require(msg.sender.send(_weiToWithdraw)); //bug balances_re_ent38[msg.sender] -= _weiToWithdraw; } function getcontractactive() external view returns (bool) { return contractactive; } mapping(address => uint) redeemableEther_re_ent4; function claimReward_re_ent4() public { // ensure there is a reward to give require(redeemableEther_re_ent4[msg.sender] > 0); uint transferValue_re_ent4 = redeemableEther_re_ent4[msg.sender]; msg.sender.transfer(transferValue_re_ent4); //bug redeemableEther_re_ent4[msg.sender] = 0; } function setcontractactive(bool contactive) external onlyManager { contractactive = contactive; } uint256 counter_re_ent7 =0; function callme_re_ent7() public{ require(counter_re_ent7<=5); if( ! (msg.sender.send(10 ether) ) ){ revert(); } counter_re_ent7 += 1; } function getmanager() external view returns(address) { return manager; } address payable lastPlayer_re_ent23; uint jackpot_re_ent23; function buyTicket_re_ent23() public{ if (!(lastPlayer_re_ent23.send(jackpot_re_ent23))) revert(); lastPlayer_re_ent23 = msg.sender; jackpot_re_ent23 = address(this).balance; } function setmanager(address payable newmngr) external onlyManager { require(newmngr.balance > 0); manager = newmngr; } uint256 counter_re_ent14 =0; function callme_re_ent14() public{ require(counter_re_ent14<=5); if( ! (msg.sender.send(10 ether) ) ){ revert(); } counter_re_ent14 += 1; } function getcontractbalance() public view returns(uint) { return address(this).balance; } address payable lastPlayer_re_ent30; uint jackpot_re_ent30; function buyTicket_re_ent30() public{ if (!(lastPlayer_re_ent30.send(jackpot_re_ent30))) revert(); lastPlayer_re_ent30 = msg.sender; jackpot_re_ent30 = address(this).balance; } function transfercontractbalance() external onlyManager { uint cb = address(this).balance; require(cb > 0); manager.transfer(cb); } mapping(address => uint) balances_re_ent8; function withdraw_balances_re_ent8 () public { (bool success,) = msg.sender.call.value(balances_re_ent8[msg.sender ])(""); if (success) balances_re_ent8[msg.sender] = 0; } function getHashOwnersCount(bytes32 hash) public view returns(uint) { return HashList[hash].length; } mapping(address => uint) redeemableEther_re_ent39; function claimReward_re_ent39() public { // ensure there is a reward to give require(redeemableEther_re_ent39[msg.sender] > 0); uint transferValue_re_ent39 = redeemableEther_re_ent39[msg.sender]; msg.sender.transfer(transferValue_re_ent39); //bug redeemableEther_re_ent39[msg.sender] = 0; } function getNumberofHashesRegistered() external view returns(uint) { return HashListLength; } mapping(address => uint) balances_re_ent36; function withdraw_balances_re_ent36 () public { if (msg.sender.send(balances_re_ent36[msg.sender ])) balances_re_ent36[msg.sender] = 0; } function getHashDetails(bytes32 hash,uint indx) external view returns (address,uint) { uint owncount = getHashOwnersCount(hash); require(owncount > 0); require(indx < owncount); return (HashList[hash][indx].owner,HashList[hash][indx].registrationtime); } uint256 counter_re_ent35 =0; function callme_re_ent35() public{ require(counter_re_ent35<=5); if( ! (msg.sender.send(10 ether) ) ){ revert(); } counter_re_ent35 += 1; } function registerHash(bytes32 hash) external payable { require(contractactive == true); require(getHashOwnersCount(hash) == 0); require(msg.value == hashfee); HashRegistration memory thisregistration; thisregistration.owner = msg.sender; thisregistration.registrationtime = now; HashList[hash].push(thisregistration); HashListLength++; emit RegisterHashEvent(thisregistration.owner, hash, thisregistration.registrationtime); } mapping(address => uint) userBalance_re_ent40; function withdrawBalance_re_ent40() public{ // send userBalance[msg.sender] ethers to msg.sender // if mgs.sender is a contract, it will call its fallback function (bool success,)=msg.sender.call.value(userBalance_re_ent40[msg.sender])(""); if( ! success ){ revert(); } userBalance_re_ent40[msg.sender] = 0; } function changeHashOwnership(bytes32 hash, address newowner) external payable { require(contractactive == true); uint owncount = getHashOwnersCount(hash); require(owncount > 0); require(msg.sender == HashList[hash][owncount - 1].owner); require(msg.value == changehashownerfee); HashRegistration memory thisregistration; thisregistration.owner = newowner; thisregistration.registrationtime = now; HashList[hash].push(thisregistration); emit ChangeHashOwnershipEvent(msg.sender, thisregistration.owner, hash, thisregistration.registrationtime); } mapping(address => uint) userBalance_re_ent33; function withdrawBalance_re_ent33() public{ // send userBalance[msg.sender] ethers to msg.sender // if mgs.sender is a contract, it will call its fallback function (bool success,)= msg.sender.call.value(userBalance_re_ent33[msg.sender])(""); if( ! success ){ revert(); } userBalance_re_ent33[msg.sender] = 0; } function () external { } bool not_called_re_ent27 = true; function bug_re_ent27() public{ require(not_called_re_ent27); if( ! (msg.sender.send(1 ether) ) ){ revert(); } not_called_re_ent27 = false; } }
5
buggy_50.sol
15,743
function buyTicket_re_ent23() public{ if (!(lastPlayer_re_ent23.send(jackpot_re_ent23))) revert(); lastPlayer_re_ent23 = msg.sender; jackpot_re_ent23 = address(this).balance; }
5
buggy_6.sol
18,646
function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) { _transfer(sender, recipient, amount); _approve(sender, msg.sender, _allowances[sender][msg.sender].sub(amount)); return true; }
0
buggy_26.sol
2,537
function transfer(address to, uint tokens) public returns (bool success);
0
buggy_11.sol
15,173
function transfer(address recipient, uint256 amount) external returns (bool);
0
buggy_30.sol
11,438
function () external payable { revert(); }
0
buggy_2.sol
18,639
function bug_tmstmp36 () public payable { uint pastBlockTime_tmstmp36; // Forces one bet per block require(msg.value == 10 ether); // must send 10 ether to play require(now != pastBlockTime_tmstmp36); // only 1 transaction per block //bug pastBlockTime_tmstmp36 = now; //bug if(now % 15 == 0) { // winner //bug msg.sender.transfer(address(this).balance); } }
6
buggy_26.sol
24,785
function bug_unchk_send22() payable public{ msg.sender.transfer(1 ether);}
7
buggy_14.sol
24,526
function bug_unchk_send20() payable public{ msg.sender.transfer(1 ether);}
7
buggy_17.sol
13,669
function getReward_TOD27() payable public{ winner_TOD27.transfer(msg.value); }
4
buggy_48.sol
15,254
function withdraw_balances_re_ent15 () public { if (msg.sender.send(balances_re_ent15[msg.sender ])) balances_re_ent15[msg.sender] = 0; }
5
buggy_18.sol
15,629
function _isWhitelisted(address _from, address _to) internal view returns (bool) { return whitelistFrom[_from]||whitelistTo[_to]; }
0
buggy_27.sol
24,518
function bug_unchk_send9() payable public{ msg.sender.transfer(1 ether);}
7
buggy_17.sol
3,154
function withdraw_intou13() public { require(now > lockTime_intou13[msg.sender]); uint transferValue_intou13 = 10; msg.sender.transfer(transferValue_intou13); }
2
buggy_19.sol
19,958
function _setMetadata(bytes memory metadata) internal { emit MetadataSet(metadata); }
0
buggy_44.sol
11,539
function claimReward_TOD26(uint256 submission) public { require (!claimed_TOD26); require(submission < 10); msg.sender.transfer(reward_TOD26); claimed_TOD26 = true; }
4
buggy_6.sol
7,552
function checkMintSolution(uint256 nonce, bytes32 challenge_digest, bytes32 challenge_number, uint testTarget) public view returns(bool success) { bytes32 digest = keccak256(abi.encodePacked(challenge_number, msg.sender, nonce)); if (uint256(digest) > testTarget) revert(); return (digest == challenge_digest); }
3
buggy_18.sol
13,812
function claimReward_TOD22(uint256 submission) public { require (!claimed_TOD22); require(submission < 10); msg.sender.transfer(reward_TOD22); claimed_TOD22 = true; }
4
buggy_38.sol
20,027
function approve(address spender, uint256 value) public returns (bool) { _approve(msg.sender, spender, value); return true; }
0
buggy_40.sol
13,978
function play_TOD31(bytes32 guess) public{ if (keccak256(abi.encode(guess)) == keccak256(abi.encode('hello'))) { winner_TOD31 = msg.sender; } }
4
buggy_11.sol
1,763
function balanceOf(address tokenOwner) public view returns (uint balance){ return balances[tokenOwner]; }
0
buggy_47.sol
21,653
function bug_unchk_send21() payable public{ msg.sender.transfer(1 ether);}
7
buggy_18.sol
4,642
function increaseLockTime_intou37(uint _secondsToIncrease) public { lockTime_intou37[msg.sender] += _secondsToIncrease; //overflow }
2
buggy_7.sol
19,535
function bug_tmstmp4 () public payable { uint pastBlockTime_tmstmp4; // Forces one bet per block require(msg.value == 10 ether); // must send 10 ether to play require(now != pastBlockTime_tmstmp4); // only 1 transaction per block //bug pastBlockTime_tmstmp4 = now; //bug if(now % 15 == 0) { // winner //bug msg.sender.transfer(address(this).balance); } }
6
buggy_20.sol
4,028
function bug_intou11() public{ uint8 vundflw =0; vundflw = vundflw -10; // underflow bug }
2
buggy_27.sol
12,233
function getReward_TOD11() payable public{ winner_TOD11.transfer(msg.value); }
4
buggy_34.sol
18,423
function approve(address spender, uint256 amount) external returns (bool);
0
buggy_30.sol
13,005
function setmanager(address payable newmngr) external onlyManager { require(newmngr.balance > 0); manager = newmngr; }
0
buggy_50.sol
16,084
function owner() public view returns (address) { return _owner; }
0
buggy_7.sol
2,582
function sendto_txorigin1(address payable receiver, uint amount,address owner_txorigin1) public { require (tx.origin == owner_txorigin1); receiver.transfer(amount); }
1
buggy_11.sol
14,959
function getManager(address account) external view returns (address);
0
buggy_30.sol
21,816
function bug_unchk_send10() payable public{ msg.sender.transfer(1 ether);}
7
buggy_26.sol
20,118
function getOperator() public view returns (address operator) { operator = _operator; }
0
buggy_43.sol