Skip to content

Commit

Permalink
fix(vm): JUMPI dest overflow check
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon-Becker committed Dec 12, 2024
1 parent 5fcbb54 commit b608cca
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 b608cca

Please sign in to comment.