Security analysis tool for EVM bytecode. Supports smart contracts built for Ethereum, Hedera, Quorum, Vechain, Roostock, Tron and other EVM-compatible blockchains.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mythril/tests/testdata/input_contracts/symbolic_exec_bytecode.sol

24 lines
521 B

pragma solidity ^0.8.0;
contract Test {
uint256 immutable inputSize;
constructor(uint256 _log2Size) {
inputSize = (1 << _log2Size);
}
function getBytes(bytes calldata _input) public view returns (bytes32) {
require(
_input.length > 0 && _input.length <= inputSize,
"input len: (0,inputSize]"
);
return "123";
}
function commencekilling() public {
address payable receiver = payable(msg.sender);
selfdestruct(receiver);
}
}