summaryrefslogtreecommitdiff
path: root/tests/analysis
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-10-24 22:13:29 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-10-24 22:13:29 (GMT)
commitaae46fab1f41df0cce9da9fc3c17eea776e487b1 (patch)
treee6137127bc4e1263d9af9684b962b5fedd5bca58 /tests/analysis
parentf82e9975ea778a2ffa7692e864b9ed49dd651bad (diff)
Handle big alloctions for strings in conditions with regular expressions.
Diffstat (limited to 'tests/analysis')
-rw-r--r--tests/analysis/scan/fuzzing.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/analysis/scan/fuzzing.py b/tests/analysis/scan/fuzzing.py
index 044fe54..e26c496 100644
--- a/tests/analysis/scan/fuzzing.py
+++ b/tests/analysis/scan/fuzzing.py
@@ -177,3 +177,18 @@ rule test {
'''
self.check_rule_failure(rule)
+
+
+ def testAllocations(self):
+ """Handle big alloctions for strings in conditions with regular expressions."""
+
+ rule = '''
+rule test {
+
+ condition:
+ "%s" == "%s"
+
+}
+''' % ("0" * (256 * 2 + 8), "0" * (256 * 2 + 8))
+
+ self.check_rule_success(rule)