mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Disallow codecopy and codesize in pure functions.
This commit is contained in:
@@ -26,5 +26,11 @@ contract C {
|
||||
function l() public view {
|
||||
assembly { pop(extcodesize(0)) }
|
||||
}
|
||||
function m() public view {
|
||||
assembly { codecopy(0,0,0) }
|
||||
}
|
||||
function n() public view {
|
||||
assembly { pop(codesize()) }
|
||||
}
|
||||
}
|
||||
// ----
|
||||
|
||||
Reference in New Issue
Block a user