diff --git a/pkg/vm/stackitem/serialization.go b/pkg/vm/stackitem/serialization.go index f9a9c7390..f6b603718 100644 --- a/pkg/vm/stackitem/serialization.go +++ b/pkg/vm/stackitem/serialization.go @@ -98,7 +98,7 @@ func DecodeBinaryStackItem(r *io.BinReader) Item { switch t { case ByteArrayT, BufferT: - data := r.ReadVarBytes() + data := r.ReadVarBytes(MaxSize) return NewByteArray(data) case BooleanT: var b = r.ReadBool()