aboutsummaryrefslogtreecommitdiffstats
path: root/src/GeneralStateTestsFiller/stPreCompiledContracts2
diff options
context:
space:
mode:
authorDimitry <dimitry@ethereum.org>2017-10-13 20:34:21 +0800
committerDimitry <dimitry@ethereum.org>2017-10-13 20:34:21 +0800
commit6e80effa947d9581e5ef8c4e02a45725f5af4346 (patch)
treeffd5b0bde30e78cf0957a40889980a3adbd0c5b6 /src/GeneralStateTestsFiller/stPreCompiledContracts2
parentba6a35c1f3f2b992279f3072e5f983522a64a5c9 (diff)
downloaddexon-tests-6e80effa947d9581e5ef8c4e02a45725f5af4346.tar
dexon-tests-6e80effa947d9581e5ef8c4e02a45725f5af4346.tar.gz
dexon-tests-6e80effa947d9581e5ef8c4e02a45725f5af4346.tar.bz2
dexon-tests-6e80effa947d9581e5ef8c4e02a45725f5af4346.tar.lz
dexon-tests-6e80effa947d9581e5ef8c4e02a45725f5af4346.tar.xz
dexon-tests-6e80effa947d9581e5ef8c4e02a45725f5af4346.tar.zst
dexon-tests-6e80effa947d9581e5ef8c4e02a45725f5af4346.zip
modexp input test
Consensus big in Parity: gas calculation of modexp is subject to overflow for certain inputs. Found via manual review. A case was found where consensus issue could be achieved in ~500K gas.
Diffstat (limited to 'src/GeneralStateTestsFiller/stPreCompiledContracts2')
-rw-r--r--src/GeneralStateTestsFiller/stPreCompiledContracts2/modexpRandomInputFiller.json24
1 files changed, 19 insertions, 5 deletions
diff --git a/src/GeneralStateTestsFiller/stPreCompiledContracts2/modexpRandomInputFiller.json b/src/GeneralStateTestsFiller/stPreCompiledContracts2/modexpRandomInputFiller.json
index d520f3635..bc6f3057a 100644
--- a/src/GeneralStateTestsFiller/stPreCompiledContracts2/modexpRandomInputFiller.json
+++ b/src/GeneralStateTestsFiller/stPreCompiledContracts2/modexpRandomInputFiller.json
@@ -25,7 +25,7 @@
}
}
},
- {
+ {
"indexes" : {
"data" : 1,
"gas" : 0,
@@ -34,7 +34,20 @@
"network" : ["Byzantium"],
"result" : {
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
- "balance" : "999999999999999890000"
+ "balance" : "999999999999999290000"
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : 2,
+ "gas" : 1,
+ "value" : -1
+ },
+ "network" : ["Byzantium"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "999999999999993000000"
}
}
}
@@ -51,15 +64,16 @@
"transaction": {
"data": [
"0x00000000000000000000000000000000000000000000000000000000000000e300000000000000000000000000000000000000000000000000",
-"0x00000000008000000000000000000000000000000000000000000000000000000000000400000000000000000000000a"
+"0x00000000008000000000000000000000000000000000000000000000000000000000000400000000000000000000000a",
+"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001147000000000000000000000000000000000000000000000000000000000061660350000000000000000000000000000000000000000000000000000000000000008"
],
"gasLimit": [
- "110000", "200000"
+ "710000", "7000000"
],
"gasPrice": "1",
"nonce": "0",
"secretKey": "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
- "to": "0x0000000000000000000000000000000000000005",
+ "to": "0x0000000000000000000000000000000000000005",
"value": [
"0x"
]