From 7ee0f23d1a69ea9e2c256e27a65ab4f9cdbeea0a Mon Sep 17 00:00:00 2001 From: Jonathan Becker Date: Thu, 12 Dec 2024 13:04:18 -0600 Subject: [PATCH] fix(vm): `JUMPI` dest overflow check (#534) --- crates/vm/src/core/vm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/vm/src/core/vm.rs b/crates/vm/src/core/vm.rs index 20e26e4e..36defe66 100644 --- a/crates/vm/src/core/vm.rs +++ b/crates/vm/src/core/vm.rs @@ -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()