diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2023-10-22 18:51:23 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2023-10-22 18:51:23 (GMT) |
commit | c74d1a9d8f1430b4e4f3989b12b9953cbb8fed50 (patch) | |
tree | 65b071823601c10965878d1dcd1eb0183bf8064a /tests/analysis/scan | |
parent | d1bac978f70b6b2e729b3e03c439d17101a57be8 (diff) |
Handle the case where no common item is found from an empty set.
Diffstat (limited to 'tests/analysis/scan')
-rw-r--r-- | tests/analysis/scan/fuzzing.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/analysis/scan/fuzzing.py b/tests/analysis/scan/fuzzing.py index 61f4117..9572774 100644 --- a/tests/analysis/scan/fuzzing.py +++ b/tests/analysis/scan/fuzzing.py @@ -123,3 +123,21 @@ rule test { ''' self.check_rule_success(rule) + + + def testNoCommon(self): + """Handle the case where no common item is found from an empty set.""" + + rule = ''' +rule test { + + bytes: + $a = "a" + + condition: + maxcommon($a) == 0 + +} +''' + + self.check_rule_success(rule) |