Skip to content

Commit 7299f8a

Browse files
Explicit range checks
1 parent d313e51 commit 7299f8a

File tree

1 file changed

+2
-2
lines changed
  • kevm-pyk/src/kevm_pyk/kproj/evm-semantics

1 file changed

+2
-2
lines changed

kevm-pyk/src/kevm_pyk/kproj/evm-semantics/evm.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1351,8 +1351,8 @@ The various `CALL*` (and other inter-contract control flow) operations will be d
13511351
13521352
syntax Bool ::= #isValidJumpDest(Bytes, Int) [function, total]
13531353
1354-
rule #isValidJumpDest(PGM, I) => true requires PGM [ I ] ==Int 91
1355-
rule #isValidJumpDest(PGM, I) => false [owise]
1354+
rule #isValidJumpDest(PGM, I) => PGM [ I ] ==Int 91 requires 0 <=Int I andBool I <Int lengthBytes(PGM)
1355+
rule #isValidJumpDest(PGM, I) => false [owise]
13561356
13571357
```
13581358

0 commit comments

Comments
 (0)