Repository navigation
fix(interpreter): return MemoryOOG when memory resize fails - #3864
Merged
Merged
Conversation
MemoryTr::resize can fail for custom memory implementations; ignore that result and later accesses can go out of bounds.
Merging this PR will degrade performance by 3.12%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ❌ | Simulation | transact_commit_1000txs |
8.6 ms | 9.3 ms | -6.68% |
| ❌ | Simulation | transact_1000tx_commit_inner_every_40 |
7.5 ms | 8 ms | -5.54% |
| ❌ | Simulation | SLOAD_50 |
58.9 µs | 61.3 µs | -3.91% |
| ❌ | Simulation | SSTORE_50 |
76 µs | 78.4 µs | -3.03% |
| ⚡ | Simulation | CREATE_50 |
968.6 µs | 932.3 µs | +3.89% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing cuiweixie:fix/memory-resize-oog (a6b238c) with main (6ef49c4)
Footnotes
-
9 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
Merged
RealiCZ
added a commit
to megaeth-labs/revm
that referenced
this pull request
Sep 18, 2026
…lloy#3746 bluealloy#3802 bluealloy#3864 (#54) Co-authored-by: Prajjwal Chittori <[email protected]> Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> Co-authored-by: Anders Brownworth <[email protected]> Co-authored-by: Ivan Wang <[email protected]> Co-authored-by: cui <[email protected]>
30 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MemoryTr::resize'sboolresult inresize_memory_cold.MemoryOOGinstead of ignoring the failure and risking later out-of-bounds access.Test plan
cargo nextest run -p revm-interpretercargo clippy --workspace --all-targets --all-features