Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
fix: mcopy offset oob (#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
enitrat authored Sep 30, 2024
1 parent 9baf1a9 commit 1a80ed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/evm/src/instructions/memory_operations.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ pub impl MemoryOperation of MemoryOperationTrait {
/// # Specification: https://www.evm.codes/#5e?fork=cancun
fn exec_mcopy(ref self: VM) -> Result<(), EVMError> {
let dest_offset = self.stack.pop_saturating_usize()?;
let source_offset = self.stack.pop_usize()?;
let source_offset = self.stack.pop_saturating_usize()?;
let size = self.stack.pop_usize()?;

let words_size = bytes_32_words_size(size).into();
Expand Down

0 comments on commit 1a80ed7

Please sign in to comment.