test_dupn_jump_into_immediate_then_execute()¶
Documentation for tests/amsterdam/eip8024_dupn_swapn_exchange/test_dupn.py::test_dupn_jump_into_immediate_then_execute@26332146.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8024_dupn_swapn_exchange/test_dupn.py::test_dupn_jump_into_immediate_then_execute --fork Amsterdam
Test jumping into a DUPN immediate, then executing a second DUPN.
The jump lands on the first DUPN's 0x5b immediate, a valid JUMPDEST because analysis is unchanged by EIP-8024, and a second DUPN then duplicates the deepest pushed value and stores it over the canary.
Source code in tests/amsterdam/eip8024_dupn_swapn_exchange/test_dupn.py
482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.