summaryrefslogtreecommitdiff
path: root/tests/analysis
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-11-14 08:08:21 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-11-14 08:08:21 (GMT)
commit192dff76e49b39794fe53eb92c9d9d852b76bf0a (patch)
treef9f705504405074b178ac671a546f031085ba817 /tests/analysis
parent6f1f98b46c4753bbbb5b763c64ada556170185b4 (diff)
Handle small base64 encodings which may produce few patterns.
Diffstat (limited to 'tests/analysis')
-rw-r--r--tests/analysis/scan/fuzzing.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/analysis/scan/fuzzing.py b/tests/analysis/scan/fuzzing.py
index 1957f72..1bebdd3 100644
--- a/tests/analysis/scan/fuzzing.py
+++ b/tests/analysis/scan/fuzzing.py
@@ -249,3 +249,21 @@ rule test {
'''
self.check_rule_failure(rule)
+
+
+ def testSmallBase64(self):
+ """Handle small base64 encodings which may produce few patterns."""
+
+ rule = '''
+rule test {
+
+ bytes:
+ $a = "0" base64
+
+ condition:
+ $a
+
+}
+'''
+
+ self.check_rule_failure(rule)