]> git.ipfire.org Git - thirdparty/suricata.git/commit
defrag: fix subsequent overlap of start of original (bsd)
authorJason Ish <jason.ish@oisf.net>
Thu, 7 Dec 2023 22:44:56 +0000 (16:44 -0600)
committerVictor Julien <vjulien@oisf.net>
Sun, 21 Apr 2024 07:37:13 +0000 (09:37 +0200)
commitf1709ea551124e1a64fdc509993ad022ab27aa77
treec97966a14648f1c6b41f9e36bda0645ccbec3020
parentd0fd0782505d837e691ceef1b801776f0db82726
defrag: fix subsequent overlap of start of original (bsd)

Fix the BSD policy case where a subsequent fragment starts before an
original fragment and overlaps the beginning of the original
fragment. In this case the overlapping data from the new fragment is
preferred.

Suricata was preferring the data from the original fragment, but it
should only do that when the original fragment has an offset <= to the
new fragment.

- Adds tests for this case.

Bug: #6669
src/defrag.c