mirror of https://github.com/ConsenSys/mythril
blockchainethereumsmart-contractssoliditysecurityprogram-analysissecurity-analysissymbolic-execution
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.
24 lines
521 B
24 lines
521 B
3 years ago
|
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);
|
||
|
}
|
||
|
}
|