Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tests): add modexp overflow test #1096

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Release tarball changes:
- πŸ”€ Update EIP-7002 according to [spec updates](https://github.com/ethereum/EIPs/pull/9119) ([#1024](https://github.com/ethereum/execution-spec-tests/pull/1024)).
- πŸ”€ Update EIP-2935 according to [spec updates](https://github.com/ethereum/EIPs/pull/9144) ([#1046](https://github.com/ethereum/execution-spec-tests/pull/1046))
- ✨ [EIP-7691](https://eips.ethereum.org/EIPS/eip-7691) Blob throughput increase tests by parametrization of existing EIP-4844 tests ([#1023](https://github.com/ethereum/execution-spec-tests/pull/1023))
- ✨ [EIP-198](https://eips.ethereum.org/EIPS/eip-198) Large base overflow test.

### πŸ› οΈ Framework

Expand Down
10 changes: 10 additions & 0 deletions tests/byzantium/eip198_modexp_precompile/test_modexp.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,16 @@ class ExpectedOutput(TestParameterGroup):
),
id="EIP-198-case5-raw-input",
),
pytest.param(
ModExpRawInput(
raw_input="ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa0",
),
ExpectedOutput(
call_return_code="0x00",
returned_data="0000000000000000000000000000000000000000000000000000000000000000",
),
id="immunefi-38958-by-omik-overflow",
),
],
ids=lambda param: param.__repr__(), # only required to remove parameter names (input/output)
)
Expand Down
Loading