Skip to content

[pallet-revive] memory bounds check#9635

Merged
pgherveou merged 12 commits intorve/revm-instructions-bitwisefrom
pg/mem
Sep 4, 2025
Merged

[pallet-revive] memory bounds check#9635
pgherveou merged 12 commits intorve/revm-instructions-bitwisefrom
pg/mem

Conversation

@pgherveou
Copy link
Copy Markdown
Contributor

@pgherveou pgherveou commented Sep 3, 2025

Limit EVM memory to the same amount as PVM memory

@pgherveou pgherveou marked this pull request as ready for review September 3, 2025 13:17
/// Revert if the memory is out of bounds.
#[macro_export]
macro_rules! resize_memory {
macro_rules! check_memory_bounds {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: This has to be a macro?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right now yes, because it returns on Error and all the REVM function do not return Result so you can't use ? to propagate errors

@pgherveou pgherveou merged commit 5404906 into rve/revm-instructions-bitwise Sep 4, 2025
42 of 44 checks passed
@pgherveou pgherveou deleted the pg/mem branch September 4, 2025 13:01
@paritytech-workflow-stopper
Copy link
Copy Markdown

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/17464699313
Failed job name: quick-benchmarks-omni

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants