]> git.ipfire.org Git - thirdparty/suricata.git/commit
threshold: Change rule parsing to use pcre_copy_substring
authorCarl Smith <carl.smith@alliedtelesis.co.nz>
Sun, 16 Aug 2020 20:41:35 +0000 (08:41 +1200)
committerVictor Julien <victor@inliniac.net>
Mon, 24 Aug 2020 14:03:25 +0000 (16:03 +0200)
commit81d7a7aa826f96deceddcae83bcdae0c925b3dab
tree8661a7904c7d228165c9adabd74a5df5a94f15a4
parentfbc9da450d917ec140e3616ad0d9363cb58ffa22
threshold: Change rule parsing to use pcre_copy_substring

Fixes memory leak when parsing threshold rules.
All parsed strings are less than 16 characters except
for the IP address which could be up to 48 characters.
Remove redefinition of MAX_SUBSTRINGS
src/util-threshold-config.c