]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
smtp: add test for cmd after long line w LF
authorShivani Bhardwaj <shivanib134@gmail.com>
Sat, 6 May 2023 11:43:03 +0000 (17:13 +0530)
committerVictor Julien <victor@inliniac.net>
Fri, 17 Nov 2023 08:33:44 +0000 (09:33 +0100)
tests/smtp-bug-5989/README.md [new file with mode: 0644]
tests/smtp-bug-5989/input.pcap [new file with mode: 0644]
tests/smtp-bug-5989/test.yaml [new file with mode: 0644]

diff --git a/tests/smtp-bug-5989/README.md b/tests/smtp-bug-5989/README.md
new file mode 100644 (file)
index 0000000..c42af56
--- /dev/null
@@ -0,0 +1,12 @@
+# Test Description
+
+This test shows that currently the command followed by a long line (>4k) is skipped even
+if it has LF. This is incorrect.
+
+## PCAP
+
+Locally modified.
+
+## Related issues
+
+https://redmine.openinfosecfoundation.org/issues/5989
diff --git a/tests/smtp-bug-5989/input.pcap b/tests/smtp-bug-5989/input.pcap
new file mode 100644 (file)
index 0000000..5b7ac08
Binary files /dev/null and b/tests/smtp-bug-5989/input.pcap differ
diff --git a/tests/smtp-bug-5989/test.yaml b/tests/smtp-bug-5989/test.yaml
new file mode 100644 (file)
index 0000000..45a2ffe
--- /dev/null
@@ -0,0 +1,12 @@
+min-version: 7
+
+args:
+- -k none
+- --simulate-ips
+
+checks:
+- filter:
+    count: 1
+    match:
+      event_type: smtp
+      smtp.helo: "Percival"