diff options
Diffstat (limited to 'tests/analysis')
-rw-r--r-- | tests/analysis/scan/fuzzing.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/analysis/scan/fuzzing.py b/tests/analysis/scan/fuzzing.py index d5fce4b..53227af 100644 --- a/tests/analysis/scan/fuzzing.py +++ b/tests/analysis/scan/fuzzing.py @@ -93,3 +93,18 @@ rule test { ''' self.check_rule_failure(rule) + + + def testSelfReferencingRule(self): + """Reject any rule referencing itself as match condition.""" + + rule = ''' +rule test { + + condition: + test + +} +''' + + self.check_rule_failure(rule) |