]> git.ipfire.org Git - thirdparty/suricata-update.git/commit
rule parsing: fix infinite loop on missing ; 9/head
authorJason Ish <ish@unx.ca>
Mon, 20 Nov 2017 21:15:54 +0000 (15:15 -0600)
committerJason Ish <ish@unx.ca>
Mon, 20 Nov 2017 21:15:54 +0000 (15:15 -0600)
commit6f4cd19c5e27105143558d00e8950f09d12e421e
tree7f68d4407fc8c2dd998a08d6d3fc085ededba73d
parentca3abfef11506bb5598e4a8adda3faefc43429b6
rule parsing: fix infinite loop on missing ;

If the last rule option was missing a ";" the parser would
enter an infinite loop. Instead error out with an exception
that can be logged.

Test case added.

From an reported on the idstools rule parser.
suricata/update/rule.py
tests/test_rule.py