diff options
author | Dimitry <dimitry@ethdev.com> | 2016-12-28 03:23:03 +0800 |
---|---|---|
committer | Dimitry <dimitry@ethdev.com> | 2016-12-28 03:23:03 +0800 |
commit | 6d0c44b2959b15e7e691771a583a12d1b13973c6 (patch) | |
tree | 297007248d32717135face42e314c8d3a415906b /src/GeneralStateTestsFiller/stBoundsTest | |
parent | c901520a663622e4445ea3e5ce448c166a1ae49e (diff) | |
download | dexon-tests-6d0c44b2959b15e7e691771a583a12d1b13973c6.tar.gz dexon-tests-6d0c44b2959b15e7e691771a583a12d1b13973c6.tar.zst dexon-tests-6d0c44b2959b15e7e691771a583a12d1b13973c6.zip |
move brokenVM memory stress tests back to bounds tests
Diffstat (limited to 'src/GeneralStateTestsFiller/stBoundsTest')
3 files changed, 180 insertions, 0 deletions
diff --git a/src/GeneralStateTestsFiller/stBoundsTest/MLOAD_Bounds3Filler.json b/src/GeneralStateTestsFiller/stBoundsTest/MLOAD_Bounds3Filler.json new file mode 100644 index 000000000..de6999ec6 --- /dev/null +++ b/src/GeneralStateTestsFiller/stBoundsTest/MLOAD_Bounds3Filler.json @@ -0,0 +1,60 @@ +{ + "MLOAD_Bounds3" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "45678256", + "currentGasLimit" : "2^63-1", + "currentGasLimit" : "0x7fffffffffffffff", + "currentNumber" : "1150000", + "currentTimestamp" : 1, + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["ALL"], + "result" : { + "1000000000000000000000000000000000000000" : { + "balance" : "1" + } + } + } + ], + "pre" : + { + "1000000000000000000000000000000000000000" : { + "balance" : "0", + "code" : "{ (MLOAD 0xffffffffff) }", + "nonce" : "0", + "storage" : { + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x7ffffffffffffffffff", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "" + ], + "gasLimit" : [ + "0x7fffffffffffffff" + ], + "gasPrice" : "1", + "nonce" : "0", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "1000000000000000000000000000000000000000", + "value" : [ + "1" + ] + } + } +} diff --git a/src/GeneralStateTestsFiller/stBoundsTest/MLOAD_BoundsFiller.json b/src/GeneralStateTestsFiller/stBoundsTest/MLOAD_BoundsFiller.json new file mode 100644 index 000000000..e00b43f80 --- /dev/null +++ b/src/GeneralStateTestsFiller/stBoundsTest/MLOAD_BoundsFiller.json @@ -0,0 +1,60 @@ +{ + "MLOAD_Bounds" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "45678256", + "currentGasLimit" : "2^63-1", + "currentGasLimit" : "0x7fffffffffffffff", + "currentNumber" : "1150000", + "currentTimestamp" : 1, + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["ALL"], + "result" : { + "1000000000000000000000000000000000000000" : { + "balance" : "1" + } + } + } + ], + "pre" : + { + "1000000000000000000000000000000000000000" : { + "balance" : "0", + "code" : "{ (MLOAD 0) (MLOAD 0xffffffff) }", + "nonce" : "0", + "storage" : { + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x7ffffffffffffffffff", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "" + ], + "gasLimit" : [ + "0x7fffffffffffffff" + ], + "gasPrice" : "1", + "nonce" : "0", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "1000000000000000000000000000000000000000", + "value" : [ + "1" + ] + } + } +} diff --git a/src/GeneralStateTestsFiller/stBoundsTest/MSTORE_Bound2Filler.json b/src/GeneralStateTestsFiller/stBoundsTest/MSTORE_Bound2Filler.json new file mode 100644 index 000000000..bdcb9a2a1 --- /dev/null +++ b/src/GeneralStateTestsFiller/stBoundsTest/MSTORE_Bound2Filler.json @@ -0,0 +1,60 @@ +{ + "MSTORE_Bounds2" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "45678256", + "currentGasLimit" : "2^63-1", + "currentGasLimit" : "0x7fffffffffffffff", + "currentNumber" : "1150000", + "currentTimestamp" : 1, + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["ALL"], + "result" : { + "1000000000000000000000000000000000000000" : { + "balance" : "1" + } + } + } + ], + "pre" : + { + "1000000000000000000000000000000000000000" : { + "balance" : "0", + "code" : "{ (MSTORE 0xffffffffff 1)}", + "nonce" : "0", + "storage" : { + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "" + ], + "gasLimit" : [ + "0x7ffffffffffffff0" + ], + "gasPrice" : "1", + "nonce" : "0", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "1000000000000000000000000000000000000000", + "value" : [ + "1" + ] + } + } +} |