test_slotnum_stack_overflow()¶
Documentation for tests/amsterdam/eip7843_slotnum/test_slotnum.py::test_slotnum_stack_overflow@ca7cac5c.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip7843_slotnum/test_slotnum.py::test_slotnum_stack_overflow --fork Amsterdam
Test that SLOTNUM aborts when pushing past the 1024-item stack limit.
The callee executes push_count consecutive SLOTNUM opcodes: 1024
pushes fill the stack exactly and succeed, while the 1025th push
aborts the frame exceptionally. The caller stores the call's success
flag over a nonzero canary.
Source code in tests/amsterdam/eip7843_slotnum/test_slotnum.py
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 | |
Parametrized Test Cases¶
This test generates 2 parametrized test cases across 1 fork.