2
0

Data row value slices need to be capacity limited

Otherwise, appending to a slice that came from a data row could
overwrite adjacent memory.
This commit is contained in:
Jack Christensen
2020-11-03 19:15:07 -06:00
parent 835cf1b068
commit c34a8731b6
+1 -1
View File
@@ -54,7 +54,7 @@ func (dst *DataRow) Decode(src []byte) error {
return &invalidMessageFormatErr{messageType: "DataRow"}
}
dst.Values[i] = src[rp : rp+msgSize]
dst.Values[i] = src[rp : rp+msgSize : rp+msgSize]
rp += msgSize
}
}