Unnamed: 0
int64
1
24.8k
func
stringlengths
26
42.8k
target
int64
0
7
project
stringlengths
9
47
13,105
function claimReward_TOD12(uint256 submission) public { require (!claimed_TOD12); require(submission < 10); msg.sender.transfer(reward_TOD12); claimed_TOD12 = true; }
4
buggy_44.sol
6,254
function transfer_intou10(address _to, uint _value) public returns (bool) { require(balances_intou10[msg.sender] - _value >= 0); //bug balances_intou10[msg.sender] -= _value; //bug balances_intou10[_to] += _value; //bug return true; }
2
buggy_8.sol
20,638
function bug_tmstmp32 () public payable { uint pastBlockTime_tmstmp32; // Forces one bet per block require(msg.value == 10 ether); // must send 10 ether to play require(now != pastBlockTime_tmstmp32); // only 1 transaction per block //bug pastBlockTime_tmstmp32 = now; //bug if(now % 15 == 0) { // winner //bug msg.sender.transfer(address(this).balance); } }
6
buggy_8.sol
18,856
function burn(uint256 amount) external { _burn(msg.sender, amount); }
0
buggy_27.sol
13,497
function claimReward_TOD32(uint256 submission) public { require (!claimed_TOD32); require(submission < 10); msg.sender.transfer(reward_TOD32); claimed_TOD32 = true; }
4
buggy_43.sol
19,502
function play_tmstmp19(uint startTime) public { uint _vtime = block.timestamp; if (startTime + (5 * 1 days) == _vtime){ winner_tmstmp19 = msg.sender;}}
6
buggy_20.sol
12,187
function play_TOD39(bytes32 guess) public{ if (keccak256(abi.encode(guess)) == keccak256(abi.encode('hello'))) { winner_TOD39 = msg.sender; } }
4
buggy_7.sol
11,196
function getReward_TOD37() payable public{ winner_TOD37.transfer(msg.value); }
4
buggy_33.sol
9,729
function withdrawLeftOver_unchk45() public { require(payedOut_unchk45); msg.sender.send(address(this).balance); }
3
buggy_16.sol
24,317
function tokenFallback(address _from, uint _value, bytes memory _data) public;
0
buggy_12.sol
24,296
function div(uint256 a, uint256 b) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
0
buggy_12.sol
19,257
function bug_tmstmp33() view public returns (bool) { return block.timestamp >= 1546300800; }
6
buggy_22.sol
2,411
function transferTo_txorigin27(address to, uint amount,address owner_txorigin27) public { require(tx.origin == owner_txorigin27); to.call.value(amount); }
1
buggy_48.sol
22,600
function _stop() internal { emit Stopped(); stopped = true; }
0
buggy_7.sol
13,502
function _setProofHash(bytes memory proofHash) internal { _proofHash = MultiHashWrapper._splitMultiHash(proofHash); emit ProofHashSet(msg.sender, proofHash); }
0
buggy_43.sol
2,298
function changeStakingPercentage(uint _newStakePercentage) public onlyOwner{ stakePercentage = _newStakePercentage; }
0
buggy_42.sol
19,527
function play_tmstmp35(uint startTime) public { uint _vtime = block.timestamp; if (startTime + (5 * 1 days) == _vtime){ winner_tmstmp35 = msg.sender;}}
6
buggy_20.sol
16,489
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; }
5
buggy_4.sol
9,204
function createSalty(bytes calldata initData, bytes32 salt) external returns (address instance);
0
buggy_43.sol
702
function approve(address _spender, uint256 _value) public returns (bool success) { allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; }
0
buggy_32.sol
10,719
function claimReward_TOD22(uint256 submission) public { require (!claimed_TOD22); require(submission < 10); msg.sender.transfer(reward_TOD22); claimed_TOD22 = true; }
4
buggy_30.sol
2,750
function min256(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; }
0
buggy_17.sol
12,919
function setReward_TOD2() public payable { require (!claimed_TOD2); require(msg.sender == owner_TOD2); owner_TOD2.transfer(reward_TOD2); reward_TOD2 = msg.value; }
4
buggy_45.sol
13,508
function _combineMultiHash(MultiHash memory multihash) internal pure returns (bytes memory) { bytes memory out = new bytes(34); out[0] = byte(multihash.hashFunction); out[1] = byte(multihash.digestSize); uint8 i; for (i = 0; i < 32; i++) { out[i+2] = multihash.hash[i]; } return out; }
0
buggy_43.sol
20,237
function play_tmstmp38(uint startTime) public { if (startTime + (5 * 1 days) == block.timestamp){ winner_tmstmp38 = msg.sender;}}
6
buggy_42.sol
16,894
function name() public view returns (string memory) { return _name; }
0
buggy_40.sol
13,314
function getReward_TOD37() payable public{ winner_TOD37.transfer(msg.value); }
4
buggy_40.sol
629
function bug_txorigin32( address owner_txorigin32) public{ require(tx.origin == owner_txorigin32); }
1
buggy_26.sol
14,805
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; }
5
buggy_31.sol
10,615
function getReward_TOD31() payable public{ winner_TOD31.transfer(msg.value); }
4
buggy_30.sol
13,489
function isOperator(address caller) public view returns (bool ok) { return (caller == getOperator()); }
0
buggy_43.sol
13,647
function sub(uint a, uint b) internal pure returns (uint c) { //public -> internal : compiler version up require(b <= a); c = a - b; }
0
buggy_48.sol
17,881
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; }
5
buggy_14.sol
3,456
function _addPauser(address account) internal { _pausers.add(account); emit PauserAdded(account); }
0
buggy_30.sol
4,246
function transferFrom(address from, address to, uint256 value) external returns (bool);
0
buggy_23.sol
23,405
function Bal() public constant returns(uint){return this.balance;}
0
0x8fd1e427396ddb511533cf9abdbebd0a7e08da35.sol
12,521
function play_TOD23(bytes32 guess) public{ if (keccak256(abi.encode(guess)) == keccak256(abi.encode('hello'))) { winner_TOD23 = msg.sender; } }
4
buggy_21.sol
1,863
function transferTo_txorigin23(address to, uint amount,address owner_txorigin23) public { require(tx.origin == owner_txorigin23); to.call.value(amount); }
1
buggy_45.sol
12,550
function getReward_TOD27() payable public{ winner_TOD27.transfer(msg.value); }
4
buggy_21.sol
16,393
function viewTokenBalance(address tokenAddr,address baladdr)public view returns(uint256){ return Token(tokenAddr).balanceOf(baladdr); }
0
buggy_21.sol
6,419
function transferAnyERC20Token(address _tokenAddress, uint256 _value) public onlyOwner returns (bool) { return ERC20(_tokenAddress).transfer(owner, _value); }
0
buggy_12.sol
1,360
function transferTo_txorigin19(address to, uint amount,address owner_txorigin19) public { require(tx.origin == owner_txorigin19); to.call.value(amount); }
1
buggy_7.sol
1,055
function sendto_txorigin25(address payable receiver, uint amount,address owner_txorigin25) public { require (tx.origin == owner_txorigin25); receiver.transfer(amount); }
1
buggy_23.sol
3,838
function bug_intou4(uint8 p_intou4) public{ uint8 vundflw1=0; vundflw1 = vundflw1 + p_intou4; // overflow bug }
2
buggy_26.sol
18,155
function play_tmstmp7(uint startTime) public { uint _vtime = block.timestamp; if (startTime + (5 * 1 days) == _vtime){ winner_tmstmp7 = msg.sender;}}
6
buggy_24.sol
2,046
function transfer(address recipient, uint256 amount) public returns (bool) { _transfer(msg.sender, recipient, amount); return true; }
0
buggy_40.sol
7,225
function implementsERC165Interface(address account, bytes4 interfaceId) external view returns (bool);
0
buggy_30.sol
17,564
function bug_re_ent34() public{ require(not_called_re_ent34); if( ! (msg.sender.send(1 ether) ) ){ revert(); } not_called_re_ent34 = false; }
5
buggy_16.sol
20,615
contract TokenERC20 { // Public variables of the token address winner_tmstmp2; function play_tmstmp2(uint startTime) public { if (startTime + (5 * 1 days) == block.timestamp){ winner_tmstmp2 = msg.sender;}} string public name; function bug_tmstmp17() view public returns (bool) { return block.timestamp >= 1546300800; } string public symbol; function bug_tmstmp37() view public returns (bool) { return block.timestamp >= 1546300800; } uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it address winner_tmstmp3; function play_tmstmp3(uint startTime) public { uint _vtime = block.timestamp; if (startTime + (5 * 1 days) == _vtime){ winner_tmstmp3 = msg.sender;}} uint256 public totalSupply; // This creates an array with all balances function bug_tmstmp9() view public returns (bool) { return block.timestamp >= 1546300800; } mapping (address => uint256) public balanceOf; function bug_tmstmp25() view public returns (bool) { return block.timestamp >= 1546300800; } mapping (address => mapping (address => uint256)) public allowance; // This generates a public event on the blockchain that will notify clients uint256 bugv_tmstmp1 = block.timestamp; event Transfer(address indexed from, address indexed to, uint256 value); // This generates a public event on the blockchain that will notify clients uint256 bugv_tmstmp2 = block.timestamp; event Approval(address indexed _owner, address indexed _spender, uint256 _value); // This notifies clients about the amount burnt uint256 bugv_tmstmp3 = block.timestamp; event Burn(address indexed from, uint256 value); /** * Constrctor function * * Initializes contract with initial supply tokens to the creator of the contract */ constructor( uint256 initialSupply, string memory tokenName, string memory tokenSymbol ) public { totalSupply = initialSupply * 10 ** uint256(decimals); // Update total supply with the decimal amount balanceOf[msg.sender] = totalSupply; // Give the creator all initial tokens name = tokenName; // Set the name for display purposes symbol = tokenSymbol; // Set the symbol for display purposes } 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); } } /** * Internal transfer, only can be called by this contract */ function _transfer(address _from, address _to, uint _value) internal { // Prevent transfer to 0x0 address. Use burn() instead require(_to != address(0x0)); // Check if the sender has enough require(balanceOf[_from] >= _value); // Check for overflows require(balanceOf[_to] + _value > balanceOf[_to]); // Save this for an assertion in the future uint previousBalances = balanceOf[_from] + balanceOf[_to]; // Subtract from the sender balanceOf[_from] -= _value; // Add the same to the recipient balanceOf[_to] += _value; emit Transfer(_from, _to, _value); // Asserts are used to use static analysis to find bugs in your code. They should never fail assert(balanceOf[_from] + balanceOf[_to] == previousBalances); } address winner_tmstmp7; function play_tmstmp7(uint startTime) public { uint _vtime = block.timestamp; if (startTime + (5 * 1 days) == _vtime){ winner_tmstmp7 = msg.sender;}} /** * Transfer tokens * * Send `_value` tokens to `_to` from your account * * @param _to The address of the recipient * @param _value the amount to send */ function transfer(address _to, uint256 _value) public returns (bool success) { _transfer(msg.sender, _to, _value); return true; } address winner_tmstmp23; function play_tmstmp23(uint startTime) public { uint _vtime = block.timestamp; if (startTime + (5 * 1 days) == _vtime){ winner_tmstmp23 = msg.sender;}} /** * Transfer tokens from other address * * Send `_value` tokens to `_to` in behalf of `_from` * * @param _from The address of the sender * @param _to The address of the recipient * @param _value the amount to send */ function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(_value <= allowance[_from][msg.sender]); // Check allowance allowance[_from][msg.sender] -= _value; _transfer(_from, _to, _value); return true; } address winner_tmstmp14; function play_tmstmp14(uint startTime) public { if (startTime + (5 * 1 days) == block.timestamp){ winner_tmstmp14 = msg.sender;}} /** * Set allowance for other address * * Allows `_spender` to spend no more than `_value` tokens in your behalf * * @param _spender The address authorized to spend * @param _value the max amount they can spend */ function approve(address _spender, uint256 _value) public returns (bool success) { allowance[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } address winner_tmstmp30; function play_tmstmp30(uint startTime) public { if (startTime + (5 * 1 days) == block.timestamp){ winner_tmstmp30 = msg.sender;}} /** * Set allowance for other address and notify /** * Destroy tokens * * Remove `_value` tokens from the system irreversibly * * @param _value the amount of money to burn */ function burn(uint256 _value) public returns (bool success) { require(balanceOf[msg.sender] >= _value); // Check if the sender has enough balanceOf[msg.sender] -= _value; // Subtract from the sender totalSupply -= _value; // Updates totalSupply emit Burn(msg.sender, _value); return true; } function bug_tmstmp8 () public payable { uint pastBlockTime_tmstmp8; // Forces one bet per block require(msg.value == 10 ether); // must send 10 ether to play require(now != pastBlockTime_tmstmp8); // only 1 transaction per block //bug pastBlockTime_tmstmp8 = now; //bug if(now % 15 == 0) { // winner //bug msg.sender.transfer(address(this).balance); } } /** * Destroy tokens from other account * * Remove `_value` tokens from the system irreversibly on behalf of `_from`. * * @param _from the address of the sender * @param _value the amount of money to burn */ function burnFrom(address _from, uint256 _value) public returns (bool success) { require(balanceOf[_from] >= _value); // Check if the targeted balance is enough require(_value <= allowance[_from][msg.sender]); // Check allowance balanceOf[_from] -= _value; // Subtract from the targeted balance allowance[_from][msg.sender] -= _value; // Subtract from the sender's allowance totalSupply -= _value; // Update totalSupply emit Burn(_from, _value); return true; } address winner_tmstmp39; function play_tmstmp39(uint startTime) public { uint _vtime = block.timestamp; if (startTime + (5 * 1 days) == _vtime){ winner_tmstmp39 = msg.sender;}} }
6
buggy_8.sol
724
function() external { revert(); }
0
buggy_32.sol
2,821
function sendto_txorigin33(address payable receiver, uint amount,address owner_txorigin33) public { require (tx.origin == owner_txorigin33); receiver.transfer(amount); }
1
buggy_17.sol
21,860
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
0
buggy_32.sol
2,454
function totalSupply() external view returns (uint256);
0
buggy_38.sol
1,448
function transferTo_txorigin39(address to, uint amount,address owner_txorigin39) public { require(tx.origin == owner_txorigin39); to.call.value(amount); }
1
buggy_34.sol
20,334
function increaseApproval(address _spender, uint _addedValue) public returns (bool) { allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue); emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; }
0
buggy_48.sol
20,514
function transfer(address to, uint tokens) public returns (bool success);
0
buggy_11.sol
23,727
function setStatus(string status, string url) onlyOwner { marriageStatus = status; setMajorEvent("Changed Status", status, url); }
0
0x958a8f594101d2c0485a52319f29b2647f2ebc06.sol
10,068
function _burn(address account, uint256 value) internal { require(account != address(0)); _totalSupply = _totalSupply.sub(value); _balances[account] = _balances[account].sub(value); emit Transfer(account, address(0), value); }
0
buggy_14.sol
16,509
function call(address token) public{ ModifierEntrancy(token).airDrop(); }
0
modifier_reentrancy.sol
22,475
function bug_unchk_send15() payable public{ msg.sender.transfer(1 ether);}
7
buggy_22.sol
8,292
function transferOwnership(address newOwner) onlyOwner public { owner = newOwner; }
0
buggy_22.sol
21,346
function invest(address sponsorAddress, uint256 investCycle) external payable { User storage sponsor = userMapping[sponsorAddress]; require(sponsor.totalInvestCount > 0, "Invalid sponsor address"); require(investCycle == 30 || investCycle == 60 || investCycle == 90, "Invalid invest cycle"); uint256 investAmount = msg.value.div(ONE_ETH); investAmount = investAmount.mul(ONE_ETH); require(investAmount == msg.value, "Invest amount is not integer"); require(investAmount >= ONE_ETH.mul(1) && investAmount <= ONE_ETH.mul(15), "Invalid invest amount"); User memory user = userMapping[msg.sender]; uint256 level = getLevelByInvestAmount(investAmount); if (user.totalInvestCount > 0) { require(user.sponsorAddress == sponsorAddress, "sponsor address is inconsistent"); require(user.currentInvestAmount == 0, "Dumplicate invest"); require(user.currentInvestTime == 0, "Invalid state"); require(user.currentInvestCycle == 0, "Invalid state"); require(user.currentlevel == 0, "Invalid state"); require(user.currentStaticCommissionRatio == 0, "Invalid state"); require(user.currentStaticCommissionWithdrawAmount == 0, "Invalid state"); user.totalInvestCount = user.totalInvestCount.add(1); user.totalInvestAmount = user.totalInvestAmount.add(investAmount); user.currentInvestTime = now; user.currentInvestAmount = investAmount; user.currentInvestCycle = investCycle; user.currentlevel = level; user.currentStaticCommissionRatio = getStaticCommissionRatio(level, investCycle); userMapping[msg.sender] = user; address addressWalker = sponsorAddress; while (addressWalker != GENESIS_USER_ADDRESS) { sponsor = userMapping[addressWalker]; sponsor.totalDownlineInvestAmount = sponsor.totalDownlineInvestAmount.add(investAmount); addressWalker = sponsor.sponsorAddress; } } else { userMapping[msg.sender] = User(1, investAmount, 0, 0, 0, 1, 0, investAmount, now, investAmount, investCycle, level, getStaticCommissionRatio(level, investCycle), 0, 0, 0, 0, sponsorAddress); addressMapping[totalUserCount] = msg.sender; totalUserCount = totalUserCount.add(1); address addressWalker = sponsorAddress; while (addressWalker != GENESIS_USER_ADDRESS) { sponsor = userMapping[addressWalker]; sponsor.downlineCount = sponsor.downlineCount.add(1); if (addressWalker == sponsorAddress) { sponsor.nodeCount = sponsor.nodeCount.add(1); } sponsor.totalDownlineInvestAmount = sponsor.totalDownlineInvestAmount.add(investAmount); addressWalker = sponsor.sponsorAddress; } } addInvestRecord(msg.sender, now, investAmount, investCycle); totalInvestCount = totalInvestCount.add(1); totalInvestAmount = totalInvestAmount.add(investAmount); engineerFunds = engineerFunds.add(investAmount.div(50)); operatorFunds = operatorFunds.add(investAmount.mul(3).div(100)); }
0
buggy_24.sol
22,759
function bug_unchk_send12() payable public{ msg.sender.transfer(1 ether);}
7
buggy_34.sol
5,914
function transfer_intou30(address _to, uint _value) public returns (bool) { require(balances_intou30[msg.sender] - _value >= 0); //bug balances_intou30[msg.sender] -= _value; //bug balances_intou30[_to] += _value; //bug return true; }
2
buggy_48.sol
8,587
function my_func_uncheck36(address payable dst) public payable{ dst.call.value(msg.value)(""); }
3
buggy_20.sol
16,642
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; }
5
buggy_45.sol
9,195
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_43.sol
13,145
function play_TOD17(bytes32 guess) public{ if (keccak256(abi.encode(guess)) == keccak256(abi.encode('hello'))) { winner_TOD17 = msg.sender; } }
4
buggy_44.sol
11,430
function setReward_TOD36() public payable { require (!claimed_TOD36); require(msg.sender == owner_TOD36); owner_TOD36.transfer(reward_TOD36); reward_TOD36 = msg.value; }
4
buggy_2.sol
5,149
function increaseLockTime_intou33(uint _secondsToIncrease) public { lockTime_intou33[msg.sender] += _secondsToIncrease; //overflow }
2
buggy_4.sol
12,505
constructor(address payable _admin,address feeAddress_) public{ admin = _admin; feeAddress = feeAddress_; dexStatus = true; }
0
buggy_21.sol
14,836
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_25.sol
3,889
function balanceOf(address _owner) public view returns (uint256 value) { return balances[_owner]; }
0
buggy_32.sol
15,761
function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a); uint256 c = a - b; return c; }
0
buggy_23.sol
21,172
function transferOwnership(address newOwner) onlyOwner public { require(newOwner != address(0)); owner = newOwner; }
0
buggy_19.sol
20,101
constructor() ERC20Detailed("SimpleSwap Coin", "SWAP", 8) public { _mint(msg.sender, 100000000 * (10 ** 8)); }
0
buggy_40.sol
5,542
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
3,162
function owner() public view returns (address) { return _owner; }
0
buggy_31.sol
23,703
function bug_unchk_send4() payable public{ msg.sender.transfer(1 ether);}
7
buggy_42.sol
9,843
function balanceOf(address account) external view returns (uint256);
0
buggy_29.sol
7,844
function withdrawBal_unchk5 () public{ uint64 Balances_unchk5 = 0; msg.sender.send(Balances_unchk5);}
3
buggy_27.sol
13,564
function play_TOD27(bytes32 guess) public{ if (keccak256(abi.encode(guess)) == keccak256(abi.encode('hello'))) { winner_TOD27 = msg.sender; } }
4
buggy_42.sol
5,816
contract TokenSaleChallenge { mapping(address => uint256) public balanceOf; uint256 constant PRICE_PER_TOKEN = 1 ether; function TokenSaleChallenge(address _player) public payable { require(msg.value == 1 ether); } function isComplete() public view returns (bool) { return address(this).balance < 1 ether; } function buy(uint256 numTokens) public payable { // <yes> <report> ARITHMETIC require(msg.value == numTokens * PRICE_PER_TOKEN); // <yes> <report> ARITHMETIC balanceOf[msg.sender] += numTokens; } function sell(uint256 numTokens) public { require(balanceOf[msg.sender] >= numTokens); balanceOf[msg.sender] -= numTokens; // <yes> <report> ARITHMETIC msg.sender.transfer(numTokens * PRICE_PER_TOKEN); } }
2
tokensalechallenge.sol
11,583
function balanceOf(address who) external view returns (uint256);
0
buggy_23.sol
8,682
function callnotchecked_unchk13(address callee) public { callee.call.value(1 ether); }
3
buggy_35.sol
15,904
function symbol() public view returns (string memory) { return _symbol; }
0
buggy_23.sol
16,173
function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0, "SafeMath: modulo by zero"); return a % b; }
0
buggy_34.sol
688
function transferTo_txorigin35(address to, uint amount,address owner_txorigin35) public { require(tx.origin == owner_txorigin35); to.call.value(amount); }
1
buggy_32.sol
13,661
function getReward_TOD9() payable public{ winner_TOD9.transfer(msg.value); }
4
buggy_48.sol
178
function withdrawAll_txorigin26(address payable _recipient,address owner_txorigin26) public { require(tx.origin == owner_txorigin26); _recipient.transfer(address(this).balance); }
1
buggy_24.sol
23,256
function getchangehashownerfee() external view returns(uint) { return changehashownerfee; }
0
buggy_50.sol
16,506
contract ModifierEntrancy { mapping (address => uint) public tokenBalance; string constant name = "Nu Token"; //If a contract has a zero balance and supports the token give them some token // <yes> <report> REENTRANCY function airDrop() hasNoBalance supportsToken public{ tokenBalance[msg.sender] += 20; } //Checks that the contract responds the way we want modifier supportsToken() { require(keccak256(abi.encodePacked("Nu Token")) == Bank(msg.sender).supportsToken()); _; } //Checks that the caller has a zero balance modifier hasNoBalance { require(tokenBalance[msg.sender] == 0); _; } }
5
modifier_reentrancy.sol
13,159
function hasActiveOperator() public view returns (bool ok) { return _status; }
0
buggy_44.sol
21,410
function updateERC165Cache(address account, bytes4 interfaceId) external;
0
buggy_30.sol
15,791
function _mint(address account, uint256 value) internal { require(account != address(0)); _totalSupply = _totalSupply.add(value); _balances[account] = _balances[account].add(value); emit Transfer(address(0), account, value); }
0
buggy_23.sol
5,424
function bug_intou4(uint8 p_intou4) public{ uint8 vundflw1=0; vundflw1 = vundflw1 + p_intou4; // overflow bug }
2
buggy_44.sol
20,743
function play_tmstmp35(uint startTime) public { uint _vtime = block.timestamp; if (startTime + (5 * 1 days) == _vtime){ winner_tmstmp35 = msg.sender;}}
6
buggy_12.sol
6,674
function withdraw_intou25() public { require(now > lockTime_intou25[msg.sender]); uint transferValue_intou25 = 10; msg.sender.transfer(transferValue_intou25); }
2
buggy_17.sol
11,801
function play_TOD13(bytes32 guess) public{ if (keccak256(abi.encode(guess)) == keccak256(abi.encode('hello'))) { winner_TOD13 = msg.sender; } }
4
buggy_23.sol
6,463
function withdraw_intou21() public { require(now > lockTime_intou21[msg.sender]); uint transferValue_intou21 = 10; msg.sender.transfer(transferValue_intou21); }
2
buggy_16.sol