]> git.ipfire.org Git - thirdparty/suricata.git/commit
defrag: fix reconstruction
authorEric Leblond <eric@regit.org>
Tue, 17 Jun 2014 09:19:05 +0000 (11:19 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 23 Jun 2014 09:31:07 +0000 (11:31 +0200)
commit97ca02f0c5c90abe8bb2c0407090aef31d004c51
tree8395e02f2f57b375831eea52669391a733b4c514
parent09fd7060ec32d2930196d18778b56a0c66edf60c
defrag: fix reconstruction

This patch is fixing an issue in defragmentation code. The
insertion of a fragment in the list of fragments is done with
respect to the offset of the fragment. But the code was using
the original offset of the fragment and not the one of the
new reconstructed fragment (which can be different in the
case of overlapping segment where the left part is trimmed).

This case could lead to some evasion techniques by causing
Suricata to analyse a different payload.
src/defrag.c