Skip to content

Commit

Permalink
Merge pull request #425 from status-im/fixes_424
Browse files Browse the repository at this point in the history
fixes #424
  • Loading branch information
jangko committed Nov 24, 2019
2 parents 1fb9e07 + 93f6b99 commit 05a5c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nimbus/vm/interpreter/opcodes_impl.nim
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ op sha3, inline = true, startPos, length:

computation.memory.extend(pos, len)
let endRange = min(pos + len, computation.memory.len) - 1
if endRange == -1:
if endRange == -1 or pos >= computation.memory.len:
push(EMPTY_SHA3)
else:
push:
Expand Down

0 comments on commit 05a5c3f

Please sign in to comment.