]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
Adds test about mime when stream depth is reached
authorPhilippe Antoine <pantoine@oisf.net>
Tue, 19 Sep 2023 08:30:03 +0000 (10:30 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 29 Sep 2023 14:25:59 +0000 (16:25 +0200)
tests/mime/mime-stream-depth/README.md [new file with mode: 0644]
tests/mime/mime-stream-depth/input.pcap [new file with mode: 0644]
tests/mime/mime-stream-depth/test.yaml [new file with mode: 0644]

diff --git a/tests/mime/mime-stream-depth/README.md b/tests/mime/mime-stream-depth/README.md
new file mode 100644 (file)
index 0000000..54c2c57
--- /dev/null
@@ -0,0 +1,8 @@
+# Description
+
+Test mime base64 decoding completeness when stream depth is reached
+See https://redmine.openinfosecfoundation.org/issues/6367
+
+# PCAP
+
+The pcap comes from QA TLPW1
diff --git a/tests/mime/mime-stream-depth/input.pcap b/tests/mime/mime-stream-depth/input.pcap
new file mode 100644 (file)
index 0000000..b0d5e56
Binary files /dev/null and b/tests/mime/mime-stream-depth/input.pcap differ
diff --git a/tests/mime/mime-stream-depth/test.yaml b/tests/mime/mime-stream-depth/test.yaml
new file mode 100644 (file)
index 0000000..6c606db
--- /dev/null
@@ -0,0 +1,18 @@
+requires:
+  min-version: 7
+
+args:
+- --set stream.reassembly.depth=1mb
+
+checks:
+  - filter:
+      count: 2
+      match:
+        event_type: fileinfo
+        fileinfo.size: 326976
+  - filter:
+      count: 1
+      match:
+        event_type: fileinfo
+        fileinfo.size: 63891
+        fileinfo.state: TRUNCATED