Commit e42d3277 authored by chriseth's avatar chriseth

Perform bounds check in case call fails.

parent 093649b6
...@@ -37,7 +37,7 @@ module.exports = { ...@@ -37,7 +37,7 @@ module.exports = {
// if stack empty => this is not a precompiled contract // if stack empty => this is not a precompiled contract
var step = trace[index] var step = trace[index]
if (this.isCallInstruction(step)) { if (this.isCallInstruction(step)) {
return trace[index + 1].stack.length !== 0 return index + 1 < trace.length && trace[index + 1].stack.length !== 0
} else { } else {
return false 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