dnp3: bound response reassembly

Ticket: 8460
(cherry picked from commit 078c08d84b)
pull/15420/head
Jason Ish 6 months ago committed by Philippe Antoine
parent 71210ab1a8
commit a1de91bf92

@ -1034,6 +1034,13 @@ static void DNP3HandleUserDataResponse(DNP3State *dnp3, const uint8_t *input,
DNP3SetEvent(dnp3, DNP3_DECODER_EVENT_MALFORMED);
return;
}
// a data link frame has its size on one byte,
// and transport layer has sequence in 0-63
if (tx->buffer_len > 63 * 0xff) {
DNP3SetEvent(dnp3, DNP3_DECODER_EVENT_TOO_LONG_REASS);
tx->done = 1;
return;
}
if (!DNP3_TH_FIN(th)) {
return;

Loading…
Cancel
Save