]> git.ipfire.org Git - thirdparty/suricata.git/commit
http: : fix int warnings
authorPhilippe Antoine <contact@catenacyber.fr>
Mon, 6 Dec 2021 08:22:52 +0000 (09:22 +0100)
committerVictor Julien <vjulien@oisf.net>
Thu, 13 Jan 2022 07:58:11 +0000 (08:58 +0100)
commit334b1382e0c647dfad71e9320350e87dbba90e1f
treebb775b6f631e9d76f2564a30670c1a5a19d7cd81
parentdefce022b42736efb3680c58d3a6bb16cdc128ad
http: : fix int warnings

Explicitly truncate file names to UINT16_MAX

Before, they got implicitly truncated, meaning a UINT16_MAX + 1
file name, went to 0 file name (because of modulo 65536)
rules/http-events.rules
src/app-layer-htp-file.c
src/app-layer-htp-range.c
src/app-layer-htp.c
src/app-layer-htp.h