Actions
Bug #7870
openrules: signature line not loaded if starts with space
Description
In a signature file, any line that starts with a space is ignored.
This happens due to line 151 in the file detect-engine-loader.c.
However, this does not seem to be the intended behavior, since the comment above states that only comments and empty lines should be skipped.
Updated by Victor Julien 3 months ago
- Subject changed from signature line not loaded if starts with space to rules: signature line not loaded if starts with space
That does seem unintentional indeed. However if we change it now for 8.0.1, could this lead to unexpected behavior as well? Suddenly rules loading that the user didn't expect?
Updated by Jeff Lucovsky about 2 months ago
We can modify 9 so rules load unless the line begins with a comment.
For 8, I'd suggest issuing a warning, perhaps at the end of rule loading: "<n> rules skipped -- line starts with whitespace"
Actions