test_dupn_stack_overflow()¶
Documentation for tests/amsterdam/eip8024_dupn_swapn_exchange/test_dupn.py::test_dupn_stack_overflow@02aafd78.
Generate fixtures for these test cases for Bogota with:
fill -v tests/amsterdam/eip8024_dupn_swapn_exchange/test_dupn.py::test_dupn_stack_overflow --fork Bogota
Test that DUPN aborts when pushing past the stack limit.
The callee pushes max_stack_height + stack_delta items and
executes DUPN: from one below the limit the duplicate fills the
stack exactly and succeeds, while from a full stack the push
overflows and aborts the frame. The caller stores the call's
success flag over a nonzero canary.
Source code in tests/amsterdam/eip8024_dupn_swapn_exchange/test_dupn.py
433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 | |
Parametrized Test Cases¶
This test generates 2 parametrized test cases across 2 forks.