tracing: fix minor off-by-one error

This commit is contained in:
Martin Holst Swende 2018-06-04 11:34:58 +02:00
parent af28d12847
commit b7a0bc1574
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0

View file

@ -78,7 +78,7 @@
// the final result of the tracing.
result: function(ctx) {
// Save the outer calldata also
if (ctx.input.length > 4) {
if (ctx.input.length >= 4) {
this.store(slice(ctx.input, 0, 4), ctx.input.length-4)
}
return this.ids;