summaryrefslogtreecommitdiff
path: root/tests/analysis/scan
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-10-22 21:21:51 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-10-22 21:21:51 (GMT)
commitf82e9975ea778a2ffa7692e864b9ed49dd651bad (patch)
treeac6df3c687f92d124b0b6f8541e9bfe983c22be2 /tests/analysis/scan
parent28c6a886ccde945cfd38f3d17fe99ff0f5d0d2c4 (diff)
Do not expect initialized trackers when there is no real defined search pattern.
Diffstat (limited to 'tests/analysis/scan')
-rw-r--r--tests/analysis/scan/fuzzing.py22
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