]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: use u32 for InspectionBufferMultipleForList
authorPhilippe Antoine <contact@catenacyber.fr>
Thu, 6 May 2021 07:25:49 +0000 (09:25 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 25 Jun 2021 15:11:00 +0000 (17:11 +0200)
commit234cafdcfe84f2d83c4e08244e78fe656af525d1
tree415914d21ab2da934171d652392f9c79cbfb2f83
parent80c3bc48271880a09865fa7bb4a1e4df838ba083
detect: use u32 for InspectionBufferMultipleForList

So that we do not have an endless loop casting index to
u16 and having more than 65536 buffers in one transaction

Changes for all protocols, even ones where it is impossible
to have such a pattern, so as to avoid bad pattern copy/paste
in the future

(cherry picked from commit 7d0a39412bb451443a4e19e6571ab86a0583214c)
rust/src/dns/dns.rs
rust/src/krb/detect.rs
rust/src/mqtt/detect.rs
src/detect-dns-query.c
src/detect-engine-mpm.h
src/detect-http2.c
src/detect-krb5-cname.c
src/detect-krb5-sname.c
src/detect-mqtt-subscribe-topic.c
src/detect-mqtt-unsubscribe-topic.c
src/detect-tls-certs.c