mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Stack height checks and fix.
This commit is contained in:
parent
4144c63d9f
commit
d85bfe1452
@ -1669,7 +1669,6 @@ BOOST_AUTO_TEST_CASE(value_insane)
|
|||||||
function test() { h = new helper(); }
|
function test() { h = new helper(); }
|
||||||
function sendAmount(uint amount) returns (uint256 bal) {
|
function sendAmount(uint amount) returns (uint256 bal) {
|
||||||
var x1 = h.getBalance.value;
|
var x1 = h.getBalance.value;
|
||||||
uint someStackElement = 20;
|
|
||||||
var x2 = x1(amount).gas;
|
var x2 = x1(amount).gas;
|
||||||
var x3 = x2(1000).value;
|
var x3 = x2(1000).value;
|
||||||
return x3(amount + 3)();// overwrite value
|
return x3(amount + 3)();// overwrite value
|
||||||
|
Loading…
Reference in New Issue
Block a user