Skip to content
This repository was archived by the owner on Aug 2, 2021. It is now read-only.

Commit ad2a75a

Browse files
committed
Added new recursive bombs
1 parent 834c52a commit ad2a75a

3 files changed

Lines changed: 363 additions & 1 deletion

File tree

vmtests/vmIOandFlowOperationsTest.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,48 @@
424424
}
425425
}
426426
},
427+
"jumpi2" : {
428+
"callcreates" : [
429+
],
430+
"env" : {
431+
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
432+
"currentDifficulty" : "256",
433+
"currentGasLimit" : "1000000",
434+
"currentNumber" : "0",
435+
"currentTimestamp" : "1",
436+
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
437+
},
438+
"exec" : {
439+
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
440+
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
441+
"code" : "0x60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff596002600357",
442+
"data" : "0x",
443+
"gas" : "10000",
444+
"gasPrice" : "100000000000000",
445+
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
446+
"value" : "1000000000000000000"
447+
},
448+
"gas" : "9997",
449+
"out" : "0x",
450+
"post" : {
451+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
452+
"balance" : "1000000000000000000",
453+
"code" : "0x60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff596002600357",
454+
"nonce" : "0",
455+
"storage" : {
456+
}
457+
}
458+
},
459+
"pre" : {
460+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
461+
"balance" : "1000000000000000000",
462+
"code" : "0x60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff596002600357",
463+
"nonce" : "0",
464+
"storage" : {
465+
}
466+
}
467+
}
468+
},
427469
"mloadError0" : {
428470
"callcreates" : [
429471
],

vmtests/vmPushDupSwapTest.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,6 +1202,48 @@
12021202
}
12031203
}
12041204
},
1205+
"push1_missingStack" : {
1206+
"callcreates" : [
1207+
],
1208+
"env" : {
1209+
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
1210+
"currentDifficulty" : "256",
1211+
"currentGasLimit" : "1000000",
1212+
"currentNumber" : "0",
1213+
"currentTimestamp" : "1",
1214+
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
1215+
},
1216+
"exec" : {
1217+
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
1218+
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
1219+
"code" : "0x60",
1220+
"data" : "0x",
1221+
"gas" : "10000",
1222+
"gasPrice" : "100000000000000",
1223+
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
1224+
"value" : "1000000000000000000"
1225+
},
1226+
"gas" : "9999",
1227+
"out" : "0x",
1228+
"post" : {
1229+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
1230+
"balance" : "1000000000000000000",
1231+
"code" : "0x60",
1232+
"nonce" : "0",
1233+
"storage" : {
1234+
}
1235+
}
1236+
},
1237+
"pre" : {
1238+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
1239+
"balance" : "1000000000000000000",
1240+
"code" : "0x60",
1241+
"nonce" : "0",
1242+
"storage" : {
1243+
}
1244+
}
1245+
}
1246+
},
12051247
"push2" : {
12061248
"callcreates" : [
12071249
],

vmtests/vmSystemOperationsTest.json

Lines changed: 279 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,134 @@
127127
}
128128
}
129129
},
130+
"ABAcalls2" : {
131+
"callcreates" : [
132+
{
133+
"data" : "0x",
134+
"destination" : "945304eb96065b2a98b57a48a06ae28d285a71b5",
135+
"gasLimit" : "9999999998768",
136+
"value" : "1"
137+
}
138+
],
139+
"env" : {
140+
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
141+
"currentDifficulty" : "256",
142+
"currentGasLimit" : "10000000",
143+
"currentNumber" : "0",
144+
"currentTimestamp" : "1",
145+
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
146+
},
147+
"exec" : {
148+
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
149+
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
150+
"code" : "0x6001600056016000576000600060006000600173945304eb96065b2a98b57a48a06ae28d285a71b56103e85c03f1",
151+
"data" : "0x",
152+
"gas" : "10000000000000",
153+
"gasPrice" : "100000000000000",
154+
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
155+
"value" : "100000"
156+
},
157+
"gas" : "1003475",
158+
"out" : "0x",
159+
"post" : {
160+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
161+
"balance" : "999999999999999488",
162+
"code" : "0x6001600056016000576000600060006000600173945304eb96065b2a98b57a48a06ae28d285a71b56103e85c03f1",
163+
"nonce" : "0",
164+
"storage" : {
165+
"0x" : "0x01"
166+
}
167+
},
168+
"945304eb96065b2a98b57a48a06ae28d285a71b5" : {
169+
"balance" : "512",
170+
"code" : "0x60016000560160005760006000600060006000730f572e5295c57f15886f9b263e2f6d2d6c7b5ec66103e85c03f1",
171+
"nonce" : "0",
172+
"storage" : {
173+
"0x" : "0x0200"
174+
}
175+
}
176+
},
177+
"pre" : {
178+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
179+
"balance" : "1000000000000000000",
180+
"code" : "0x6001600056016000576000600060006000600173945304eb96065b2a98b57a48a06ae28d285a71b56103e85c03f1",
181+
"nonce" : "0",
182+
"storage" : {
183+
}
184+
},
185+
"945304eb96065b2a98b57a48a06ae28d285a71b5" : {
186+
"balance" : "0",
187+
"code" : "0x60016000560160005760006000600060006000730f572e5295c57f15886f9b263e2f6d2d6c7b5ec66103e85c03f1",
188+
"nonce" : "0",
189+
"storage" : {
190+
}
191+
}
192+
}
193+
},
194+
"ABAcalls3" : {
195+
"callcreates" : [
196+
{
197+
"data" : "0x",
198+
"destination" : "945304eb96065b2a98b57a48a06ae28d285a71b5",
199+
"gasLimit" : "998768",
200+
"value" : "1"
201+
}
202+
],
203+
"env" : {
204+
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
205+
"currentDifficulty" : "256",
206+
"currentGasLimit" : "10000000",
207+
"currentNumber" : "0",
208+
"currentTimestamp" : "1",
209+
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
210+
},
211+
"exec" : {
212+
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
213+
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
214+
"code" : "0x6001600056016000576000600060006000600173945304eb96065b2a98b57a48a06ae28d285a71b56103e85c03f1",
215+
"data" : "0x",
216+
"gas" : "1000000",
217+
"gasPrice" : "100000000000000",
218+
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
219+
"value" : "100000"
220+
},
221+
"gas" : "864457",
222+
"out" : "0x",
223+
"post" : {
224+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
225+
"balance" : "1024558",
226+
"code" : "0x6001600056016000576000600060006000600173945304eb96065b2a98b57a48a06ae28d285a71b56103e85c03f1",
227+
"nonce" : "0",
228+
"storage" : {
229+
"0x" : "0x01"
230+
}
231+
},
232+
"945304eb96065b2a98b57a48a06ae28d285a71b5" : {
233+
"balance" : "442",
234+
"code" : "0x60016000560160005760006000600060006000730f572e5295c57f15886f9b263e2f6d2d6c7b5ec66103e85c03f1",
235+
"nonce" : "0",
236+
"storage" : {
237+
"0x" : "0x01b9"
238+
}
239+
}
240+
},
241+
"pre" : {
242+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
243+
"balance" : "1025000",
244+
"code" : "0x6001600056016000576000600060006000600173945304eb96065b2a98b57a48a06ae28d285a71b56103e85c03f1",
245+
"nonce" : "0",
246+
"storage" : {
247+
}
248+
},
249+
"945304eb96065b2a98b57a48a06ae28d285a71b5" : {
250+
"balance" : "0",
251+
"code" : "0x60016000560160005760006000600060006000730f572e5295c57f15886f9b263e2f6d2d6c7b5ec66103e85c03f1",
252+
"nonce" : "0",
253+
"storage" : {
254+
}
255+
}
256+
}
257+
},
130258
"ABAcallsSuicide0" : {
131259
"callcreates" : [
132260
{
@@ -239,7 +367,7 @@
239367
}
240368
}
241369
},
242-
"CallRecursiveBomb" : {
370+
"CallRecursiveBomb0" : {
243371
"callcreates" : [
244372
{
245373
"data" : "0x",
@@ -303,6 +431,156 @@
303431
}
304432
}
305433
},
434+
"CallRecursiveBomb1" : {
435+
"callcreates" : [
436+
{
437+
"data" : "0x",
438+
"destination" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
439+
"gasLimit" : "364267",
440+
"value" : "0"
441+
}
442+
],
443+
"env" : {
444+
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
445+
"currentDifficulty" : "256",
446+
"currentGasLimit" : "10000000",
447+
"currentNumber" : "0",
448+
"currentTimestamp" : "1",
449+
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
450+
},
451+
"exec" : {
452+
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
453+
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
454+
"code" : "0x600160005601600057600060006000600060003060e05c03f1600157",
455+
"data" : "0x",
456+
"gas" : "364723",
457+
"gasPrice" : "1",
458+
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
459+
"value" : "100000"
460+
},
461+
"gas" : "104246",
462+
"out" : "0x",
463+
"post" : {
464+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
465+
"balance" : "20000000",
466+
"code" : "0x600160005601600057600060006000600060003060e05c03f1600157",
467+
"nonce" : "0",
468+
"storage" : {
469+
"0x" : "0x03fe",
470+
"0x01" : "0x01"
471+
}
472+
}
473+
},
474+
"pre" : {
475+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
476+
"balance" : "20000000",
477+
"code" : "0x600160005601600057600060006000600060003060e05c03f1600157",
478+
"nonce" : "0",
479+
"storage" : {
480+
}
481+
}
482+
}
483+
},
484+
"CallRecursiveBomb2" : {
485+
"callcreates" : [
486+
{
487+
"data" : "0x",
488+
"destination" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
489+
"gasLimit" : "364268",
490+
"value" : "0"
491+
}
492+
],
493+
"env" : {
494+
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
495+
"currentDifficulty" : "256",
496+
"currentGasLimit" : "10000000",
497+
"currentNumber" : "0",
498+
"currentTimestamp" : "1",
499+
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
500+
},
501+
"exec" : {
502+
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
503+
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
504+
"code" : "0x600160005601600057600060006000600060003060e05c03f1600157",
505+
"data" : "0x",
506+
"gas" : "364724",
507+
"gasPrice" : "1",
508+
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
509+
"value" : "100000"
510+
},
511+
"gas" : "104551",
512+
"out" : "0x",
513+
"post" : {
514+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
515+
"balance" : "20000000",
516+
"code" : "0x600160005601600057600060006000600060003060e05c03f1600157",
517+
"nonce" : "0",
518+
"storage" : {
519+
"0x" : "0x03ff",
520+
"0x01" : "0x01"
521+
}
522+
}
523+
},
524+
"pre" : {
525+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
526+
"balance" : "20000000",
527+
"code" : "0x600160005601600057600060006000600060003060e05c03f1600157",
528+
"nonce" : "0",
529+
"storage" : {
530+
}
531+
}
532+
}
533+
},
534+
"CallRecursiveBomb3" : {
535+
"callcreates" : [
536+
{
537+
"data" : "0x",
538+
"destination" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
539+
"gasLimit" : "999544",
540+
"value" : "0"
541+
}
542+
],
543+
"env" : {
544+
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
545+
"currentDifficulty" : "256",
546+
"currentGasLimit" : "10000000",
547+
"currentNumber" : "0",
548+
"currentTimestamp" : "1",
549+
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
550+
},
551+
"exec" : {
552+
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
553+
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
554+
"code" : "0x600160005601600057600060006000600060003060e05c03f1600157",
555+
"data" : "0x",
556+
"gas" : "1000000",
557+
"gasPrice" : "1",
558+
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
559+
"value" : "100000"
560+
},
561+
"gas" : "104551",
562+
"out" : "0x",
563+
"post" : {
564+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
565+
"balance" : "20000000",
566+
"code" : "0x600160005601600057600060006000600060003060e05c03f1600157",
567+
"nonce" : "0",
568+
"storage" : {
569+
"0x" : "0x03ff",
570+
"0x01" : "0x01"
571+
}
572+
}
573+
},
574+
"pre" : {
575+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
576+
"balance" : "20000000",
577+
"code" : "0x600160005601600057600060006000600060003060e05c03f1600157",
578+
"nonce" : "0",
579+
"storage" : {
580+
}
581+
}
582+
}
583+
},
306584
"CallToNameRegistrator0" : {
307585
"callcreates" : [
308586
{

0 commit comments

Comments
 (0)