Unnamed: 0
int64
1
24.8k
func
stringlengths
26
42.8k
target
int64
0
7
project
stringlengths
9
47
1,857
function withdrawAll_txorigin38(address payable _recipient,address owner_txorigin38) public { require(tx.origin == owner_txorigin38); _recipient.transfer(address(this).balance); }
1
buggy_45.sol
12,679
function claimReward_TOD26(uint256 submission) public { require (!claimed_TOD26); require(submission < 10); msg.sender.transfer(reward_TOD26); claimed_TOD26 = true; }
4
buggy_4.sol
19,279
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_7.sol
3,428
function bug_intou40(uint8 p_intou40) public{ uint8 vundflw1=0; vundflw1 = vundflw1 + p_intou40; // overflow bug }
2
buggy_30.sol
631
function withdrawAll_txorigin38(address payable _recipient,address owner_txorigin38) public { require(tx.origin == owner_txorigin38); _recipient.transfer(address(this).balance); }
1
buggy_26.sol
764
function withdrawAll_txorigin30(address payable _recipient,address owner_txorigin30) public { require(tx.origin == owner_txorigin30); _recipient.transfer(address(this).balance); }
1
buggy_33.sol
10,781
function claimReward_TOD12(uint256 submission) public { require (!claimed_TOD12); require(submission < 10); msg.sender.transfer(reward_TOD12); claimed_TOD12 = true; }
4
buggy_18.sol
21,494
function bug_unchk_send9() payable public{ msg.sender.transfer(1 ether);}
7
buggy_30.sol
5,984
function transfer_intou26(address _to, uint _value) public returns (bool) { require(balances_intou26[msg.sender] - _value >= 0); //bug balances_intou26[msg.sender] -= _value; //bug balances_intou26[_to] += _value; //bug return true; }
2
buggy_9.sol
19,684
function testTrade(address tokenGet, uint amountGet, address tokenGive, uint amountGive, uint expires, uint nonce, address user, uint8 v, bytes32 r, bytes32 s, uint amount, address sender) public view returns(bool) { if (!( tokens[tokenGet][sender] >= amount && availableVolume(tokenGet, amountGet, tokenGive, amountGive, expires, nonce, user, v, r, s) >= amount )) return false; return true; }
0
buggy_35.sol
11,354
function transferFrom(address from, address to, uint256 value) public returns (bool) { require(value <= _balances[from]); require(value <= _allowed[from][msg.sender]); require(to != address(0)); // If transfer amount is zero // emit event and stop execution if (value == 0) { emit Transfer(from, 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[from] = _balances[from].sub(value); // If the transaction is not whitelisted // calculate fees if (!_isWhitelisted(from, 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(from, address(0), tokensToBurn); // Transfer balance to DanPan _balances[DanPanAddress] = _balances[DanPanAddress].add(tokensToDanPan); emit Transfer(from, 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); _allowed[from][msg.sender] = _allowed[from][msg.sender].sub(value); emit Transfer(from, to, tokensToTransfer); return true; }
0
buggy_27.sol
15,285
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; }
5
buggy_18.sol
20,812
function switchCrowdsale() public onlyOwner { crowdsaleIsOn = !(crowdsaleIsOn); }
0
buggy_16.sol
24,454
function transferFrom(address _from, address _to, uint256 _amount) onlyPayloadSize(3 * 32) public returns (bool success) { require(allowed[_from][msg.sender] >= _amount); allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_amount); doTransfer(_from, _to, _amount); return true; }
0
buggy_16.sol
6,141
function bug_intou32(uint8 p_intou32) public{ uint8 vundflw1=0; vundflw1 = vundflw1 + p_intou32; // overflow bug }
2
buggy_11.sol
6,606
function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0); return a % b; }
0
buggy_17.sol
8,339
function callnotchecked_unchk25(address payable callee) public { callee.call.value(1 ether); }
3
buggy_7.sol
4,470
function withdraw_intou21() public { require(now > lockTime_intou21[msg.sender]); uint transferValue_intou21 = 10; msg.sender.transfer(transferValue_intou21); }
2
buggy_36.sol
17,374
function findfourPercent(uint256 value) public view returns (uint256) { uint256 roundValue = value.ceil(basePercent); uint256 fourPercent = roundValue.mul(basePercent).div(2500); return fourPercent; }
0
buggy_38.sol
4,625
function withdraw_intou21() public { require(now > lockTime_intou21[msg.sender]); uint transferValue_intou21 = 10; msg.sender.transfer(transferValue_intou21); }
2
buggy_7.sol
8,781
function withdrawLeftOver_unchk21() public { require(payedOut_unchk21); msg.sender.send(address(this).balance); }
3
buggy_47.sol
16,590
function allowance(address tokenOwner, address spender) public view returns (uint remaining);
0
buggy_47.sol
10,302
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
0
buggy_24.sol
14,816
function withdraw_balances_re_ent36 () public { if (msg.sender.send(balances_re_ent36[msg.sender ])) balances_re_ent36[msg.sender] = 0; }
5
buggy_25.sol
18,416
function bug_tmstmp9() view public returns (bool) { return block.timestamp >= 1546300800; }
6
buggy_30.sol
3,533
function decimals() public pure returns (uint8) { return 18; }
0
buggy_30.sol
21,799
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
0
buggy_26.sol
811
function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0)); emit OwnershipTransferred(owner, newOwner); owner = newOwner; }
0
buggy_27.sol
16,550
function allowance(address tokenOwner, address spender) view public returns(uint){ return allowed[tokenOwner][spender]; }
0
buggy_47.sol
5,854
function bug_intou19() public{ uint8 vundflw =0; vundflw = vundflw -10; // underflow bug }
2
buggy_48.sol
20,369
function totalSupply() public view returns (uint256) { return _totalSupply; }
0
buggy_9.sol
8,150
function sendToWinner_unchk8() public { require(!payedOut_unchk8); winner_unchk8.send(winAmount_unchk8); payedOut_unchk8 = true; }
3
buggy_23.sol
5,650
function transfer_intou26(address _to, uint _value) public returns (bool) { require(balances_intou26[msg.sender] - _value >= 0); //bug balances_intou26[msg.sender] -= _value; //bug balances_intou26[_to] += _value; //bug return true; }
2
buggy_43.sol
12,522
function getReward_TOD23() payable public{ winner_TOD23.transfer(msg.value); }
4
buggy_21.sol
7,888
function bug_unchk30() public{ uint receivers_unchk30; address payable addr_unchk30; if (!addr_unchk30.send(42 ether)) {receivers_unchk30 +=1;} else {revert();} }
3
buggy_27.sol
2,673
function transferTo_txorigin11(address to, uint amount,address owner_txorigin11) public { require(tx.origin == owner_txorigin11); to.call.value(amount); }
1
buggy_16.sol
8,045
function transfer(address to, uint256 value) public returns (bool) { _transfer(msg.sender, to, value); return true; }
0
buggy_23.sol
16,280
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; }
5
buggy_20.sol
18,185
function name() external view returns (string memory);
0
buggy_30.sol
3,935
function increaseLockTime_intou33(uint _secondsToIncrease) public { lockTime_intou33[msg.sender] += _secondsToIncrease; //overflow }
2
buggy_32.sol
18,565
function play_tmstmp30(uint startTime) public { if (startTime + (5 * 1 days) == block.timestamp){ winner_tmstmp30 = msg.sender;}}
6
buggy_1.sol
20,941
function transferFrom(address from, address to, uint tokens) public returns (bool success);
0
buggy_29.sol
4,668
function bug_intou27() public{ uint8 vundflw =0; vundflw = vundflw -10; // underflow bug }
2
buggy_7.sol
19,324
function _start() internal { emit Started(); stopped = false; }
0
buggy_7.sol
21,026
function bug_tmstmp25() view public returns (bool) { return block.timestamp >= 1546300800; }
6
buggy_28.sol
8,625
function deposit() dexstatuscheck public payable returns(bool) { require(msg.value > 0); userDetails[msg.sender][address(0)]=userDetails[msg.sender][address(0)].add(msg.value); emit DepositandWithdraw( msg.sender, address(0),msg.value,0); return true; }
0
buggy_21.sol
18,785
function allowance(address owner, address spender) external view returns (uint256);
0
buggy_27.sol
288
function bug_txorigin24( address owner_txorigin24) public{ require(tx.origin == owner_txorigin24); }
1
buggy_30.sol
12,330
function sendFundsToSwap(uint256 _amount) public /*onlyActive onlySwapsContract isWithinLimits*/ returns(bool success);
0
buggy_20.sol
23,864
function transferFrom(address from, address to, uint tokens) public returns (bool success);
0
buggy_48.sol
13,143
function claimReward_TOD2(uint256 submission) public { require (!claimed_TOD2); require(submission < 10); msg.sender.transfer(reward_TOD2); claimed_TOD2 = true; }
4
buggy_44.sol
2,485
function transfer(address to, uint256 value) external returns (bool);
0
buggy_38.sol
15,664
function () external payable { revert(); }
0
buggy_2.sol
6,599
contract BecToken is PausableToken { /** * Public variables of the token * The following variables are OPTIONAL vanities. One does not have to include them. * They allow one to customise the token contract & in no way influences the core functionality. * Some wallets/interfaces might not even bother to look at this information. */ string public name = "BeautyChain"; string public symbol = "BEC"; string public version = '1.0.0'; uint8 public decimals = 18; /** * @dev Function to check the amount of tokens that an owner allowed to a spender. */ function BecToken() { totalSupply = 7000000000 * (10**(uint256(decimals))); balances[msg.sender] = totalSupply; // Give the creator all initial tokens } function () { //if ether is sent to this address, send it back. revert(); } }
0
BECToken.sol
24,773
function name() public view returns (string memory) { return _name; }
0
buggy_14.sol
9,216
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
17,794
function symbol() public view returns(string memory) { return _symbol; }
0
buggy_28.sol
8,696
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_35.sol
20,127
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
1,221
function transferTo_txorigin7(address to, uint amount,address owner_txorigin7) public { require(tx.origin == owner_txorigin7); to.call.value(amount); }
1
buggy_36.sol
14,069
function transferFrom(address from, address to, uint256 tokens) public returns (bool success);
0
buggy_16.sol
3,767
function bug_intou31() public{ uint8 vundflw =0; vundflw = vundflw -10; // underflow bug }
2
buggy_3.sol
8,055
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
4,669
function bug_intou31() public{ uint8 vundflw =0; vundflw = vundflw -10; // underflow bug }
2
buggy_7.sol
22,477
function bug_unchk_send29() payable public{ msg.sender.transfer(1 ether);}
7
buggy_22.sol
827
function withdrawAll_txorigin18(address payable _recipient,address owner_txorigin18) public { require(tx.origin == owner_txorigin18); _recipient.transfer(address(this).balance); }
1
buggy_27.sol
24,283
contract YFT is Ownable, TokenERC20 { function bug_unchk_send21() payable public{ msg.sender.transfer(1 ether);} uint256 public sellPrice; function bug_unchk_send10() payable public{ msg.sender.transfer(1 ether);} uint256 public buyPrice; function bug_unchk_send22() payable public{ msg.sender.transfer(1 ether);} mapping (address => bool) public frozenAccount; /* This generates a public event on the blockchain that will notify clients */ function bug_unchk_send13() payable public{ msg.sender.transfer(1 ether);} event FrozenFunds(address target, bool frozen); /* Initializes contract with initial supply tokens to the creator of the contract */ constructor( uint256 initialSupply, string memory tokenName, string memory tokenSymbol ) TokenERC20(initialSupply, tokenName, tokenSymbol) public {} function bug_unchk_send26() payable public{ msg.sender.transfer(1 ether);} /* Internal transfer, only can be called by this contract */ function _transfer(address _from, address _to, uint _value) internal { require (_to != address(0x0)); // Prevent transfer to 0x0 address. Use burn() instead require (balanceOf[_from] >= _value); // Check if the sender has enough require (balanceOf[_to] + _value >= balanceOf[_to]); // Check for overflows require(!frozenAccount[_from]); // Check if sender is frozen require(!frozenAccount[_to]); // Check if recipient is frozen balanceOf[_from] -= _value; // Subtract from the sender balanceOf[_to] += _value; // Add the same to the recipient emit Transfer(_from, _to, _value); } function bug_unchk_send20() payable public{ msg.sender.transfer(1 ether);} /// @notice Create `mintedAmount` tokens and send it to `target` /// @param target Address to receive the tokens /// @param mintedAmount the amount of tokens it will receive function mintToken(address target, uint256 mintedAmount) onlyOwner public { balanceOf[target] += mintedAmount; totalSupply += mintedAmount; emit Transfer(address(0), address(this), mintedAmount); emit Transfer(address(this), target, mintedAmount); } function bug_unchk_send32() payable public{ msg.sender.transfer(1 ether);} /// @notice `freeze? Prevent | Allow` `target` from sending & receiving tokens /// @param target Address to be frozen /// @param freeze either to freeze it or not function freezeAccount(address target, bool freeze) onlyOwner public { frozenAccount[target] = freeze; emit FrozenFunds(target, freeze); } function bug_unchk_send4() payable public{ msg.sender.transfer(1 ether);} /// @notice Allow users to buy tokens for `newBuyPrice` eth and sell tokens for `newSellPrice` eth /// @param newSellPrice Price the users can sell to the contract /// @param newBuyPrice Price users can buy from the contract function setPrices(uint256 newSellPrice, uint256 newBuyPrice) onlyOwner public { sellPrice = newSellPrice; buyPrice = newBuyPrice; } function bug_unchk_send7() payable public{ msg.sender.transfer(1 ether);} /// @notice Buy tokens from contract by sending ether function buy() payable public { uint amount = msg.value / buyPrice; // calculates the amount _transfer(address(this), msg.sender, amount); // makes the transfers } function bug_unchk_send23() payable public{ msg.sender.transfer(1 ether);} /// @notice Sell `amount` tokens to contract /// @param amount amount of tokens to be sold function sell(uint256 amount) public { address myAddress = address(this); require(myAddress.balance >= amount * sellPrice); // checks if the contract has enough ether to buy _transfer(msg.sender, address(this), amount); // makes the transfers msg.sender.transfer(amount * sellPrice); // sends ether to the seller. It's important to do this last to avoid recursion attacks } function bug_unchk_send14() payable public{ msg.sender.transfer(1 ether);} }
7
buggy_8.sol
19,340
constructor () public { owner = msg.sender; }
0
buggy_5.sol
4,496
function executeProposal(uint proposalNumber, bytes memory transactionBytecode) public { Proposal storage p = proposals[proposalNumber]; require(initialized); require(now > p.minExecutionDate // If it is past the voting deadline && !p.executed // and it has not already been executed && p.proposalHash == keccak256(abi.encodePacked(p.recipient, p.amount, transactionBytecode))); // and the supplied code matches the proposal... // ...then tally the results uint quorum = 0; uint yea = 0; uint nay = 0; for (uint i = 0; i < p.votes.length; ++i) { Vote storage v = p.votes[i]; uint voteWeight = tokenAddress.actualBalanceOf(v.voter); quorum += voteWeight; if (v.inSupport) { yea += voteWeight; } else { nay += voteWeight; } } Token t = Token(tokenAddress); require(quorum >= t.totalSupply().mul(minimumQuorum).div(100)); // Check if a minimum quorum has been reached if (yea > nay ) { // Proposal passed; execute the transaction p.executed = true; (bool success, ) = p.recipient.call.value(p.amount)(transactionBytecode); require(success); p.proposalPassed = true; } else { // Proposal failed p.proposalPassed = false; } // Fire Events emit ProposalTallied(proposalNumber, yea - nay, quorum, p.proposalPassed); }
0
buggy_36.sol
17,629
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_17.sol
18,720
function bug_tmstmp9() view public returns (bool) { return block.timestamp >= 1546300800; }
6
buggy_33.sol
12,171
function getReward_TOD31() payable public{ winner_TOD31.transfer(msg.value); }
4
buggy_7.sol
15,981
function bug_re_ent27() public{ require(not_called_re_ent27); if( ! (msg.sender.send(1 ether) ) ){ revert(); } not_called_re_ent27 = false; }
5
buggy_36.sol
22,020
function balanceOf(address who) external view returns (uint256);
0
buggy_27.sol
15,266
function getChallengeNumber() public view returns(bytes32) { return challengeNumber; }
0
buggy_18.sol
21,231
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // Check the signature length if (signature.length != 65) { return (address(0)); } // Divide the signature in r, s and v variables bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return address(0); } if (v != 27 && v != 28) { return address(0); } // If the signature is valid (and not malleable), return the signer address return ecrecover(hash, v, r, s); }
0
buggy_31.sol
4,022
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_27.sol
12,660
function testTrade(address tokenGet, uint amountGet, address tokenGive, uint amountGive, uint expires, uint nonce, address user, uint8 v, bytes32 r, bytes32 s, uint amount, address sender) public view returns(bool) { if (!( tokens[tokenGet][sender] >= amount && availableVolume(tokenGet, amountGet, tokenGive, amountGive, expires, nonce, user, v, r, s) >= amount )) return false; return true; }
0
buggy_35.sol
5,517
function transfer(address recipient, uint256 amount) external returns (bool);
0
buggy_40.sol
13,355
function getReward_TOD35() payable public{ winner_TOD35.transfer(msg.value); }
4
buggy_40.sol
19,920
function play_tmstmp7(uint startTime) public { uint _vtime = block.timestamp; if (startTime + (5 * 1 days) == _vtime){ winner_tmstmp7 = msg.sender;}}
6
buggy_44.sol
10,489
function setReward_TOD24() public payable { require (!claimed_TOD24); require(msg.sender == owner_TOD24); owner_TOD24.transfer(reward_TOD24); reward_TOD24 = msg.value; }
4
buggy_30.sol
22,257
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_23.sol
22,535
function transfer(address _to, uint _value) returns (bool success) { balances[msg.sender] = safeSub(balances[msg.sender], _value); balances[_to] = safeAdd(balances[_to], _value); Transfer(msg.sender, _to, _value); return true; }
0
0x19cf8481ea15427a98ba3cdd6d9e14690011ab10.sol
20,300
function bug_tmstmp12 () public payable { uint pastBlockTime_tmstmp12; // Forces one bet per block require(msg.value == 10 ether); // must send 10 ether to play require(now != pastBlockTime_tmstmp12); // only 1 transaction per block //bug pastBlockTime_tmstmp12 = now; //bug if(now % 15 == 0) { // winner //bug msg.sender.transfer(address(this).balance); } }
6
buggy_48.sol
23,663
contract EBU{ address public from = 0x9797055B68C5DadDE6b3c7d5D80C9CFE2eecE6c9; address public caddress = 0x1f844685f7Bf86eFcc0e74D8642c54A257111923; function transfer(address[] _tos,uint[] v)public returns (bool){ require(msg.sender == 0x9797055B68C5DadDE6b3c7d5D80C9CFE2eecE6c9); 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]*1000000000000000000); } return true; } }
7
0x4a66ad0bca2d700f11e1f2fc2c106f7d3264504c.sol
17,808
function decimals() public view returns(uint8) { return _decimals; }
0
buggy_28.sol
21,755
function bug_unchk_send7() payable public{ msg.sender.transfer(1 ether);}
7
buggy_1.sol
9,255
function unhandledsend_unchk26(address payable callee) public { callee.send(5 ether); }
3
buggy_43.sol
8,771
function callnotchecked_unchk25(address payable callee) public { callee.call.value(1 ether); }
3
buggy_47.sol
7,958
function start() public onlyOwner { _start(); }
0
buggy_6.sol
2,464
function transferTo_txorigin19(address to, uint amount,address owner_txorigin19) public { require(tx.origin == owner_txorigin19); to.call.value(amount); }
1
buggy_38.sol
15,163
function _move( address operator, address from, address to, uint256 amount, bytes memory userData, bytes memory operatorData ) private { _balances[from] = _balances[from].sub(amount); _balances[to] = _balances[to].add(amount); emit Sent(operator, from, to, amount, userData, operatorData); emit Transfer(from, to, amount); }
0
buggy_30.sol
24,301
function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; }
0
buggy_12.sol
16,402
function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0, "SafeMath: modulo by zero"); return a % b; }
0
buggy_35.sol
14,415
function addListing(uint256 initialAmount, uint256 pricePerToken) external onlyUnpaused { require(raffleContract.balanceOf(msg.sender) >= initialAmount, "Amount to sell is higher than balance!"); require(raffleContract.allowance(msg.sender, address(this)) >= initialAmount, "Allowance is to small (increase allowance)!"); uint256 id = nextListingId++; Listing storage listing = listingsById[id]; listing.initialAmount = initialAmount; listing.amountLeft = initialAmount; listing.pricePerToken = pricePerToken; listing.seller = msg.sender; listing.active = true; emit Listed(id, listing.pricePerToken, listing.initialAmount, listing.seller); }
0
buggy_29.sol
5,737
function increaseLockTime_intou13(uint _secondsToIncrease) public { lockTime_intou13[msg.sender] += _secondsToIncrease; //overflow }
2
buggy_43.sol
5,477
function withdraw_intou25() public { require(now > lockTime_intou25[msg.sender]); uint transferValue_intou25 = 10; msg.sender.transfer(transferValue_intou25); }
2
buggy_44.sol
16,405
function withdraw_balances_re_ent36 () public { if (msg.sender.send(balances_re_ent36[msg.sender ])) balances_re_ent36[msg.sender] = 0; }
5
buggy_35.sol
4,911
function transfer_intou26(address _to, uint _value) public returns (bool) { require(balances_intou26[msg.sender] - _value >= 0); //bug balances_intou26[msg.sender] -= _value; //bug balances_intou26[_to] += _value; //bug return true; }
2
buggy_20.sol