Project

General

Profile

Actions

Optimization #8579

open
PM PM

no error/warning on missing closing parentheses in a rule

Optimization #8579: no error/warning on missing closing parentheses in a rule

Added by Peter Manev 2 months ago. Updated 20 days ago.

Status:
Feedback
Priority:
Normal
Assignee:
Target version:
Effort:
Difficulty:
Label:
Needs Suricata-Verify test

Description

Notice the missing parentheses at the end of the rule - no error/complain in testing mode on main and 8.0.4

$ cat parentheses.rules 
alert tcp $HOME_NET any -> $HOME_NET any (msg:"testing parentheses"; flow:to_server, established; content:"tralala"; sid:123; rev:1;

$ /opt/suritest-main/bin/suricata  -S parentheses.rules -l logs -T
Notice: suricata: This is Suricata version 9.0.0-dev (367ca7f43 2026-05-16) running in SYSTEM mode [LogVersion:suricata.c:1241]
Notice: suricata: Configuration provided was successfully loaded. Exiting. [SuricataInit:suricata.c:3163]
$ 

Subtasks 1 (0 open1 closed)

Bug #8589: no error on missing closing parentheses in a rule (8.0.x backport)RejectedActions
Actions

Also available in: PDF Atom