diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2023-08-06 23:18:51 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2023-08-06 23:18:51 (GMT) |
commit | fa2ac321528fbba5fa9eb15ee6ae87803fb54bb3 (patch) | |
tree | bad1ba1bfce03ba0d5f478ea298cb6ae08350681 /tests/analysis/scan | |
parent | 453825b9435ec5740fcada42cebe246325a07c37 (diff) |
Reject calls on non callable expressions softly (and fix a little coding mistake).
Diffstat (limited to 'tests/analysis/scan')
-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 6eecac9..d5fce4b 100644 --- a/tests/analysis/scan/fuzzing.py +++ b/tests/analysis/scan/fuzzing.py @@ -78,3 +78,18 @@ rule test { ''' self.check_rule_failure(rule) + + + def testCallOnNonCallable(self): + """Reject calls on non callable expressions softly.""" + + rule = ''' +rule test { + + condition: + console.log().log() + +} +''' + + self.check_rule_failure(rule) |