Skip to content

Commit ed6eba7

Browse files
committed
Update + ABA recursive bomb which needs maximum recursion limit of 1024
1 parent 2d72050 commit ed6eba7

File tree

3 files changed

+92
-9
lines changed

3 files changed

+92
-9
lines changed

vmtests/vmIOandFlowOperationsTest.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
191191
"value" : "1000000000000000000"
192192
},
193-
"gas" : "9997",
193+
"gas" : "0",
194194
"out" : "0x",
195195
"post" : {
196196
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
@@ -274,14 +274,15 @@
274274
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
275275
"value" : "1000000000000000000"
276276
},
277-
"gas" : "9996",
277+
"gas" : "9794",
278278
"out" : "0x",
279279
"post" : {
280280
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
281281
"balance" : "1000000000000000000",
282282
"code" : "0x602360006009596001600257",
283283
"nonce" : "0",
284284
"storage" : {
285+
"0x02" : "0x01"
285286
}
286287
}
287288
},

vmtests/vmSystemOperationsTest.json

+65-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"ABAcalls" : {
2+
"ABAcalls0" : {
33
"callcreates" : [
44
{
55
"data" : "0x",
@@ -63,6 +63,70 @@
6363
}
6464
}
6565
},
66+
"ABAcalls1" : {
67+
"callcreates" : [
68+
{
69+
"data" : "0x",
70+
"destination" : "945304eb96065b2a98b57a48a06ae28d285a71b5",
71+
"gasLimit" : "9999999998992",
72+
"value" : "24"
73+
}
74+
],
75+
"env" : {
76+
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
77+
"currentDifficulty" : "256",
78+
"currentGasLimit" : "10000000",
79+
"currentNumber" : "0",
80+
"currentTimestamp" : "1",
81+
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
82+
},
83+
"exec" : {
84+
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
85+
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
86+
"code" : "0x6000600060006000601873945304eb96065b2a98b57a48a06ae28d285a71b56103e85c03f15a57",
87+
"data" : "0x",
88+
"gas" : "10000000000000",
89+
"gasPrice" : "100000000000000",
90+
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
91+
"value" : "100000"
92+
},
93+
"gas" : "898727",
94+
"out" : "0x",
95+
"post" : {
96+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
97+
"balance" : "999999999999999488",
98+
"code" : "0x6000600060006000601873945304eb96065b2a98b57a48a06ae28d285a71b56103e85c03f15a57",
99+
"nonce" : "0",
100+
"storage" : {
101+
"0x25" : "0x01"
102+
}
103+
},
104+
"945304eb96065b2a98b57a48a06ae28d285a71b5" : {
105+
"balance" : "535",
106+
"code" : "0x60006000600060006017730f572e5295c57f15886f9b263e2f6d2d6c7b5ec66103e85c03f16001015a57",
107+
"nonce" : "0",
108+
"storage" : {
109+
"0x28" : "0x02"
110+
}
111+
}
112+
},
113+
"pre" : {
114+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
115+
"balance" : "1000000000000000000",
116+
"code" : "0x6000600060006000601873945304eb96065b2a98b57a48a06ae28d285a71b56103e85c03f15a57",
117+
"nonce" : "0",
118+
"storage" : {
119+
}
120+
},
121+
"945304eb96065b2a98b57a48a06ae28d285a71b5" : {
122+
"balance" : "23",
123+
"code" : "0x60006000600060006017730f572e5295c57f15886f9b263e2f6d2d6c7b5ec66103e85c03f16001015a57",
124+
"nonce" : "0",
125+
"storage" : {
126+
}
127+
}
128+
}
129+
},
66130
"ABAcallsSuicide0" : {
67131
"callcreates" : [
68132
{

vmtests/vmtests.json

+24-6
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,26 @@
5252
{
5353
"data" : "0x",
5454
"destination" : "cd1722f3947def4cf144679da39c4c32bdc35681",
55-
"gasLimit" : "9770",
55+
"gasLimit" : "9786",
5656
"value" : "2"
57+
},
58+
{
59+
"data" : "0x",
60+
"destination" : "cd1722f3947def4cf144679da39c4c32bdc35681",
61+
"gasLimit" : "9731",
62+
"value" : "12"
63+
},
64+
{
65+
"data" : "0x",
66+
"destination" : "cd1722f3947def4cf144679da39c4c32bdc35681",
67+
"gasLimit" : "9694",
68+
"value" : "13"
69+
},
70+
{
71+
"data" : "0x",
72+
"destination" : "cd1722f3947def4cf144679da39c4c32bdc35681",
73+
"gasLimit" : "9657",
74+
"value" : "14"
5775
}
5876
],
5977
"env" : {
@@ -67,19 +85,19 @@
6785
"exec" : {
6886
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
6987
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
70-
"code" : "0x601a5d60345d604e5d60685d60825d609c5d60b65d60d05d60016001100f601a59600060006000600060023360c85c03f15060006001100f603459600060006000600060033360c85c03f15060016000100f604e59600060006000600060043360c85c03f15060006000100f606859600060006000600060053360c85c03f15060016001110f6082596000600060006000600c3360c85c03f15060006001110f609c596000600060006000600d3360c85c03f15060016000110f60b6596000600060006000600e3360c85c03f15060006000110f60d0596000600060006000600f3360c85c03f150",
88+
"code" : "0x60016001100f601b59600060006000600060023360c85c03f1505d60006001100f603659600060006000600060033360c85c03f1505d60016000100f605159600060006000600060043360c85c03f1505d60006000100f606c59600060006000600060053360c85c03f1505d60016001110f6087596000600060006000600c3360c85c03f1505d60006001110f60a2596000600060006000600d3360c85c03f1505d60016000110f60bd596000600060006000600e3360c85c03f1505d60006000110f60d8596000600060006000600f3360c85c03f1505d",
7189
"data" : "0x",
7290
"gas" : "10000",
7391
"gasPrice" : "100000000000000",
7492
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
7593
"value" : "1000000000000000000"
7694
},
77-
"gas" : "9940",
95+
"gas" : "9828",
7896
"out" : "0x",
7997
"post" : {
8098
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
81-
"balance" : "999999999999999998",
82-
"code" : "0x601a5d60345d604e5d60685d60825d609c5d60b65d60d05d60016001100f601a59600060006000600060023360c85c03f15060006001100f603459600060006000600060033360c85c03f15060016000100f604e59600060006000600060043360c85c03f15060006000100f606859600060006000600060053360c85c03f15060016001110f6082596000600060006000600c3360c85c03f15060006001110f609c596000600060006000600d3360c85c03f15060016000110f60b6596000600060006000600e3360c85c03f15060006000110f60d0596000600060006000600f3360c85c03f150",
99+
"balance" : "999999999999999959",
100+
"code" : "0x60016001100f601b59600060006000600060023360c85c03f1505d60006001100f603659600060006000600060033360c85c03f1505d60016000100f605159600060006000600060043360c85c03f1505d60006000100f606c59600060006000600060053360c85c03f1505d60016001110f6087596000600060006000600c3360c85c03f1505d60006001110f60a2596000600060006000600d3360c85c03f1505d60016000110f60bd596000600060006000600e3360c85c03f1505d60006000110f60d8596000600060006000600f3360c85c03f1505d",
83101
"nonce" : "0",
84102
"storage" : {
85103
}
@@ -88,7 +106,7 @@
88106
"pre" : {
89107
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
90108
"balance" : "1000000000000000000",
91-
"code" : "0x601a5d60345d604e5d60685d60825d609c5d60b65d60d05d60016001100f601a59600060006000600060023360c85c03f15060006001100f603459600060006000600060033360c85c03f15060016000100f604e59600060006000600060043360c85c03f15060006000100f606859600060006000600060053360c85c03f15060016001110f6082596000600060006000600c3360c85c03f15060006001110f609c596000600060006000600d3360c85c03f15060016000110f60b6596000600060006000600e3360c85c03f15060006000110f60d0596000600060006000600f3360c85c03f150",
109+
"code" : "0x60016001100f601b59600060006000600060023360c85c03f1505d60006001100f603659600060006000600060033360c85c03f1505d60016000100f605159600060006000600060043360c85c03f1505d60006000100f606c59600060006000600060053360c85c03f1505d60016001110f6087596000600060006000600c3360c85c03f1505d60006001110f60a2596000600060006000600d3360c85c03f1505d60016000110f60bd596000600060006000600e3360c85c03f1505d60006000110f60d8596000600060006000600f3360c85c03f1505d",
92110
"nonce" : "0",
93111
"storage" : {
94112
}

0 commit comments

Comments
 (0)