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:
+1
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user