]> git.ipfire.org Git - people/ms/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>
Tue, 15 Jun 2021 09:25:24 +0000 (11:25 +0200)
commit7d0a39412bb451443a4e19e6571ab86a0583214c
tree8612528fb97e4b191bf99249d44d03fda2f7abe4
parente611adf3dc5b531a9d0ef9b861b4dbe0e150eae6
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
13 files changed:
rust/src/dns/dns.rs
rust/src/ike/detect.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-ike-vendor.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