From 148e70dac88e60c6c6afaa0c2bd60a8a65c0af3f Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Thu, 14 Dec 2017 21:29:24 +0000 Subject: add test for CALLDATACOPY where calldata offset > calldata length and copy length > 0 --- .../stCodeCopyTest/codeCopyOffset.json | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 GeneralStateTests/stCodeCopyTest/codeCopyOffset.json (limited to 'GeneralStateTests/stCodeCopyTest') diff --git a/GeneralStateTests/stCodeCopyTest/codeCopyOffset.json b/GeneralStateTests/stCodeCopyTest/codeCopyOffset.json new file mode 100644 index 000000000..59ed08089 --- /dev/null +++ b/GeneralStateTests/stCodeCopyTest/codeCopyOffset.json @@ -0,0 +1,70 @@ +{ + "codeCopyOffset" : { + "_info" : { + "comment" : "", + "filledwith" : "cpp-1.3.0+commit.dda985df.Linux.g++", + "lllcversion" : "Version: 0.4.14+commit.c2215d46.Linux.g++", + "source" : "src/GeneralStateTestsFiller/stCodeCopyTest/codeCopyOffsetFiller.json", + "sourceHash" : "5b2c7100e44c9b292d7c8b1b5f7b25358ff0ecebe06712ae6b56d0402e84f210" + }, + "env" : { + "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x20000", + "currentGasLimit" : "0x0f4240", + "currentNumber" : "0x01", + "currentTimestamp" : "0x03e8", + "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "post" : { + "Byzantium" : [ + { + "hash" : "0xa3a74abb68afdaeaa697f2136d2435abffca904e7dafa06837f67949bf229989", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ] + }, + "pre" : { + "0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x670123456789abcdef60005260006000600f6000600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee61fffff1", + "nonce" : "0x01", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600052601061ffff61010037600051600055", + "nonce" : "0x01", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "" + ], + "gasLimit" : [ + "0x061a80" + ], + "gasPrice" : "0x01", + "nonce" : "0x00", + "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : [ + "0x0186a0" + ] + } + } +} \ No newline at end of file -- cgit