]> 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>
Tue, 5 Oct 2021 10:25:52 +0000 (12:25 +0200)
commitb13117991ab0f9288422597662e1232672d28f34
tree40eeb3610010cc5750152d0d22dbedd266e2083d
parent1c6e36abb565fd0f84fa7d6ba6c6d3b0dbb15b9b
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