]> git.ipfire.org Git - thirdparty/suricata.git/commit
defrag: check next fragment for overlap before stopping re-assembly
authorJason Ish <jason.ish@oisf.net>
Tue, 28 Nov 2023 18:35:26 +0000 (12:35 -0600)
committerVictor Julien <vjulien@oisf.net>
Sun, 21 Apr 2024 07:37:13 +0000 (09:37 +0200)
commitd0fd0782505d837e691ceef1b801776f0db82726
tree02cd1bf2beeb8a790c8c07f7dff7492b9a914629
parentbdd17de73d6507a02729e069d31c590a760fb9b7
defrag: check next fragment for overlap before stopping re-assembly

Instead of breaking the loop when the current fragment does not have
any more fragments, set a flag and continue to the next fragment as
the next fragment may have data that occurs before this fragment, but
overlaps it.

Then break if the next fragment does not overlap the previous.

Bug: #6668
src/defrag.c