]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: parsing avoiding infinite loop
authorPhilippe Antoine <contact@catenacyber.fr>
Sat, 16 Apr 2022 14:51:42 +0000 (16:51 +0200)
committerVictor Julien <vjulien@oisf.net>
Mon, 13 Jun 2022 18:13:57 +0000 (20:13 +0200)
commit249a3b56779599f4fe120112caafd53344473b9d
tree23f536971a0a7fd9a57b2c4a1c72ab12685ab7a8
parent6ba16e883eb4502aec21777c2db1281a6f0cae25
detect: parsing avoiding infinite loop

by comparing size_t to strlen result
Instead of uint16_t which would loop

Ticket: #5310
(cherry picked from commit ced96a8aadd8a9a4ce3d8d689ac53f7eedbbe8e9)
src/detect-content.c
src/detect-detection-filter.c
src/detect-engine-prefilter.c
src/detect-msg.c
src/detect-threshold.c