]> git.ipfire.org Git - thirdparty/suricata.git/commit
defrag: fix check for complete packet
authorJason Ish <jason.ish@oisf.net>
Fri, 12 Jan 2024 17:09:59 +0000 (11:09 -0600)
committerVictor Julien <vjulien@oisf.net>
Mon, 22 Apr 2024 07:08:18 +0000 (09:08 +0200)
commitd13bd2ae217a6d2ceb347f74d27cbfcd37b9bda9
tree23befceee8d097fff95080479c06347e08df016a
parent414f97c6695c5a2e1d378a36a6f50d7288767634
defrag: fix check for complete packet

The list of fragments may still contain overlaps, so adding up the
fragment lengths is flawed. Instead track the largest size of
contiguous data that can be re-assembled.

Bug: #6675
(cherry picked from commit d226d0a3fce8837936e1bdfaee496c80d417e0a5)
src/defrag.c