]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: Validate that NOOPT options don't have optvals
authorGianni Tedesco <gianni@scaramanga.co.uk>
Sun, 13 Dec 2020 14:54:13 +0000 (23:54 +0900)
committerVictor Julien <victor@inliniac.net>
Thu, 14 Jan 2021 09:08:41 +0000 (10:08 +0100)
commit006d62cf853f4a1dcc4bd46cc966b5a96c887b75
treea7176216ecfac38c79769d50a436b55a4910fec3
parentf20035a854a9754206eafe2c9f231cf4c7089646
detect: Validate that NOOPT options don't have optvals

Without this, a simple typo between : and ; is able to hide actual bugs
in rules.

I discovered 2 bugs in ET open ruleset this way.

(cherry picked from commit 10ea60a237cf41ddd10f7a887e2824b4b8e1c419)
src/detect-parse.c
src/tests/detect-parse.c