]> git.ipfire.org Git - thirdparty/suricata.git/commit
http: complete multipart until request.body-limit 8690/head
authorPhilippe Antoine <pantoine@oisf.net>
Thu, 26 Jan 2023 08:28:46 +0000 (09:28 +0100)
committerVictor Julien <vjulien@oisf.net>
Thu, 6 Apr 2023 14:55:30 +0000 (16:55 +0200)
commit749277d46fffbf7a1caa0f44563b39c65e658bb5
treedea33ef759719289bcb8b7ee86d04d9c6d03fc35
parent2c600336ab338e51d566bfc82f4e4131395abf9b
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
(cherry picked from commit 578f328e06b3e03f3bdbbf852b5d121e20849b8b)
(cherry picked from commit caf9940fd10f474bcbc7bf983e3849a83a8c7562)
src/app-layer-htp.c