]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
reputation: test reputation category with 0x0c 0x0a line 3081/head
authorSergey Pinaev <s.pinaev@solarsecurity.ru>
Wed, 29 Apr 2026 12:10:45 +0000 (15:10 +0300)
committerVictor Julien <vjulien@oisf.net>
Mon, 11 May 2026 20:04:47 +0000 (20:04 +0000)
Ticket: 8500

tests/bug-8500/README.md [new file with mode: 0644]
tests/bug-8500/cats.txt [new file with mode: 0644]
tests/bug-8500/iprep.list [new file with mode: 0644]
tests/bug-8500/suricata.yaml [new file with mode: 0644]
tests/bug-8500/test.rules [new file with mode: 0644]
tests/bug-8500/test.yaml [new file with mode: 0644]

diff --git a/tests/bug-8500/README.md b/tests/bug-8500/README.md
new file mode 100644 (file)
index 0000000..507966e
--- /dev/null
@@ -0,0 +1,8 @@
+# Test
+
+Attempt to trigger buffer underrun in reputation
+file loading.
+
+## Ticket
+
+https://redmine.openinfosecfoundation.org/issues/8500
diff --git a/tests/bug-8500/cats.txt b/tests/bug-8500/cats.txt
new file mode 100644 (file)
index 0000000..5070a56
--- /dev/null
@@ -0,0 +1,2 @@
+\f
+
diff --git a/tests/bug-8500/iprep.list b/tests/bug-8500/iprep.list
new file mode 100644 (file)
index 0000000..8adaa76
--- /dev/null
@@ -0,0 +1,2 @@
+#8.8.8.8,10,100
+4.4.4.4,10,100
diff --git a/tests/bug-8500/suricata.yaml b/tests/bug-8500/suricata.yaml
new file mode 100644 (file)
index 0000000..f5161d2
--- /dev/null
@@ -0,0 +1,11 @@
+%YAML 1.1
+---
+
+reputation-categories-file: cats.txt
+
+reputation-files:
+  - iprep.list
+
+engine-analysis:
+  # enables printing reports for each rule
+  rules: yes
diff --git a/tests/bug-8500/test.rules b/tests/bug-8500/test.rules
new file mode 100644 (file)
index 0000000..bb04e65
--- /dev/null
@@ -0,0 +1 @@
+alert tcp any any -> any any (msg:"SURICATA STREAM Packet with invalid timestamp"; stream-event:pkt_invalid_timestamp; classtype:protocol-command-decode; sid:2210044; rev:2;)
diff --git a/tests/bug-8500/test.yaml b/tests/bug-8500/test.yaml
new file mode 100644 (file)
index 0000000..ca4b70b
--- /dev/null
@@ -0,0 +1,6 @@
+requires:
+  pcap: false
+  min-version: 9
+
+args:
+- --engine-analysis