mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
core/vm: fix opRJumpV
This commit is contained in:
parent
19e296506a
commit
fa6b1b9fa1
1 changed files with 1 additions and 1 deletions
|
|
@ -799,7 +799,7 @@ func opRjumpi(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]b
|
|||
func opRjumpv(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byte, error) {
|
||||
var (
|
||||
code = scope.Contract.CodeAt(scope.CodeSection)
|
||||
count = uint64(code[*pc+1])
|
||||
count = uint64(code[*pc+1]) + 1
|
||||
idx = scope.Stack.pop()
|
||||
)
|
||||
if idx, overflow := idx.Uint64WithOverflow(); overflow || idx >= count {
|
||||
|
|
|
|||
Loading…
Reference in a new issue