]> git.ipfire.org Git - thirdparty/suricata.git/commit
smb: fix post-trunc chunk behavior 8389/head 8390/head
authorVictor Julien <vjulien@oisf.net>
Wed, 11 Jan 2023 20:07:16 +0000 (21:07 +0100)
committerVictor Julien <vjulien@oisf.net>
Tue, 17 Jan 2023 13:26:29 +0000 (14:26 +0100)
commita24d7dc45c818054f97448ce42ca9ba270b3b8e4
tree061cb2f603e92d50daa850557d8bf41e93a25036
parente22b59b8c17c2fb8ae30b2612086a7975cd94a6c
smb: fix post-trunc chunk behavior

After a gap in a file transaction, the file tracker is truncated. However
this did not clear any stored out of order chunks from memory or stop more
chunks to be stored, leading to accumulation of a large number of chunks.

This patches fixes this be clearing the stored chunks on trunc. It also
makes sure no more chunks are stored in the tracker after the trunc.

Bug: #5781.
rust/src/filetracker.rs