Merge pull request #425 from status-im/fixes_424

fixes #424
This commit is contained in:
andri lim 2019-11-24 14:07:08 +07:00 committed by GitHub
commit 05a5c3f40b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: