]> git.ipfire.org Git - thirdparty/suricata.git/commit
http: complete multipart until request.body-limit 8648/head
authorPhilippe Antoine <contact@catenacyber.fr>
Thu, 26 Jan 2023 08:28:46 +0000 (09:28 +0100)
committerVictor Julien <vjulien@oisf.net>
Wed, 29 Mar 2023 13:29:16 +0000 (15:29 +0200)
commit578f328e06b3e03f3bdbbf852b5d121e20849b8b
tree4e9eaa8ac2067abb9e67dfe168015066d6ce24fe
parentd9008614a22697594958be073f2a94da9e8d85f2
http: complete multipart until request.body-limit

In the case we are truncating a multipart file because of reaching
request.body-limit, we used to not consume the whole buffer, but
keep expected_boundary_len bytes in case a new boundary begins
in these bytes.
Even if we cannot check the complete boundary, we can still check
the first bytes, as will be done in the rust version.

Ticket: #5952
src/app-layer-htp.c