test_dupn_stack_overflow()¶
Documentation for tests/amsterdam/eip8024_dupn_swapn_exchange/test_dupn.py::test_dupn_stack_overflow@c17999c0.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8024_dupn_swapn_exchange/test_dupn.py::test_dupn_stack_overflow --fork Amsterdam
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
413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 | |
Parametrized Test Cases¶
This test generates 2 parametrized test cases across 1 fork.