]> git.ipfire.org Git - thirdparty/suricata.git/commit
app-layer/pd: only consider actual available data
authorVictor Julien <victor@inliniac.net>
Wed, 21 Apr 2021 13:20:49 +0000 (15:20 +0200)
committerJeff Lucovsky <jeff@lucovsky.org>
Fri, 17 Sep 2021 17:34:32 +0000 (13:34 -0400)
commit30d6e143046380d4c949e0599ce79ad894c94d49
tree08a16f427f6b59eb95826eaa389aebc6e72abbdd
parent1d85d1b8df83e836e84e9c020dc8b6f4546e54de
app-layer/pd: only consider actual available data

For size limit checks consider only available data at the stream start
and before any GAPS.

The old check would consider too much data if there were temporary gaps,
like when a data packet was in-window but (far) ahead of the expected
segment.

(cherry picked from commit 7a114e506a27fcb2a3b5ed28b1c10fe100cf78c6)
src/app-layer.c
src/stream-tcp-reassemble.c
src/stream-tcp-reassemble.h