]> 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)
committerVictor Julien <victor@inliniac.net>
Thu, 1 Jul 2021 12:05:36 +0000 (14:05 +0200)
commit7a114e506a27fcb2a3b5ed28b1c10fe100cf78c6
tree57d33afab9d8a150aca2f02ff071117ae2f9ed6b
parentbe1baa8cab1bc51228d2d882b15880a36c377be4
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.
src/app-layer.c
src/stream-tcp-reassemble.c
src/stream-tcp-reassemble.h