Skip to content

Commit

Permalink
Merge pull request #18015 from ghalliday/issue30005bug
Browse files Browse the repository at this point in the history
HPCC-30798 Fix potential internal error when large rows serialised in roxie

Reviewed-by: Mark Kelly [email protected]
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored Nov 10, 2023
2 parents b33459d + f7d23ef commit bd658b4
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 bd658b4

Please sign in to comment.