Skip to content

Commit

Permalink
HPCC-30798 Fix potential internal error when large rows serialised in…
Browse files Browse the repository at this point in the history
… roxie

Signed-off-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday committed Nov 10, 2023
1 parent 0f3bace commit d2b1a29
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions roxie/udplib/udptrs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1338,6 +1338,11 @@ class CMessagePacker : implements IMessagePacker, public CInterface
}
else
{
//Edge case - ensure that the length of a variable length record does not span a packet
//this can occur when large rows > data_buffer_size are being appended to the buffer.
if (variable && ((data_buffer_size - data_used) < sizeof(RecordLengthType)))
flush(false);

while (len)
{
if (!part_buffer)
Expand Down

0 comments on commit d2b1a29

Please sign in to comment.