]> git.ipfire.org Git - people/ms/suricata.git/commit
app-layer-htp: use stream depth with filestore
authorGiuseppe Longo <giuseppe@glongo.it>
Mon, 28 Jan 2019 15:15:22 +0000 (16:15 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 16 Sep 2019 10:47:56 +0000 (12:47 +0200)
commitde904db8305688dfe7454bb6a2126cae40b5ba3d
tree021f4d3bde3350b5356c73e2307b9643dc87ce26
parented5a439b8e8680c74b8bec8873e1a126081b7fce
app-layer-htp: use stream depth with filestore

This permits to use stream-depth value set for file-store.

Currently if a file is being stored and hits a limit,
such as request or response body, it will be truncated
although file-store.stream-depth is enabled but the file should be
closed and not truncated.

Two unit tests have been added to verify that:
- a file is stored correctly
- chunk's length computation doesn’t cause an underflow
src/app-layer-htp.c
src/app-layer-htp.h