]> 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:27:44 +0000 (09:27 +0200)
commite6267758ed5da27f804f0c1c07f9423bdf4d72b8
tree72f984f361d6f37a76e9b6cff8ca6c7a38b164b3
parent1e110d0a71db46571040b937e17a4bc9f91d6de9
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