Skip to content

Commit

Permalink
smtp: add tests for issue 7126
Browse files Browse the repository at this point in the history
Ensure the SMTP applayer parser doesn't generate an error message while
parsing the SMTP frames.
  • Loading branch information
jlucovsky authored and victorjulien committed Sep 22, 2024
1 parent 8b65014 commit 83bda40
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/bug-7126/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This test is for bug 7126 and designed to insure the smtp applayer parser
doesn't generate an error message.
Binary file added tests/bug-7126/input.pcap
Binary file not shown.
1 change: 1 addition & 0 deletions tests/bug-7126/input.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alert ip any any -> any any (msg:"Sample rule"; flow: established, to_server; file_data; content:"no-match"; sid:1;)
13 changes: 13 additions & 0 deletions tests/bug-7126/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
requires:
min-version: 8

args:
- --set logging.outputs.1.file.type=json
- -k none

checks:
- filter:
count: 0
filename: suricata.log
match:
engine.message: "Extra characters following numeric value"

0 comments on commit 83bda40

Please sign in to comment.