Commit 037d2016 authored by chriseth's avatar chriseth Committed by GitHub

Merge pull request #113 from ethereum/fixisprecompiled

Perform bounds check in case call fails.
parents 093649b6 e42d3277
......@@ -37,7 +37,7 @@ module.exports = {
// if stack empty => this is not a precompiled contract
var step = trace[index]
if (this.isCallInstruction(step)) {
return trace[index + 1].stack.length !== 0
return index + 1 < trace.length && trace[index + 1].stack.length !== 0
} else {
return false
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment