Skip to content

Commit

Permalink
fix(vm): JUMPI dest overflow check (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon-Becker authored Dec 12, 2024
1 parent 5fcbb54 commit 7ee0f23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/vm/src/core/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@ impl VM {
if !condition.eq(&U256::from(0u8)) {
// Check if JUMPDEST is valid and throw with 790 if not (invalid jump
// destination)
if (pc <=
if (pc <
self.bytecode
.len()
.try_into()
Expand Down

0 comments on commit 7ee0f23

Please sign in to comment.