diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/analysis/scan/fuzzing.py | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/tests/analysis/scan/fuzzing.py b/tests/analysis/scan/fuzzing.py index c38b25c..044fe54 100644 --- a/tests/analysis/scan/fuzzing.py +++ b/tests/analysis/scan/fuzzing.py @@ -132,7 +132,7 @@ rule test { rule test { bytes: - $a = "a" + $a = "a" condition: maxcommon($a) == 0 @@ -150,7 +150,25 @@ rule test { rule test { bytes: - $a = "0000a0I0" nocase + $a = "0000a0I0" nocase + + condition: + $a + +} +''' + + self.check_rule_failure(rule) + + + def testAAsAcharacter(self): + """Do not expect initialized trackers when there is no real defined search pattern.""" + + rule = ''' +rule test { + + bytes: + $a = {[0]} condition: $a |