Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 01ff731

Browse files
committedJan 31, 2024
parser-common: recognize events produced by SIGMA checkers
1 parent 941ad1a commit 01ff731

5 files changed

+923
-1
lines changed
 

‎src/lib/parser-common.hh

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535

3636
#define RE_EVENT_GCC "(?:(?:(?:fatal|internal|runtime) )?[A-Za-z][A-Za-z0-9_-]+)(?:\\[[^ \\]]+\\])?"
3737
#define RE_EVENT_PROSPECTOR "(?:[A-Z]+[0-9]+\\[[a-z0-9-]+\\])"
38-
#define RE_EVENT RE_EVENT_GCC "|" RE_EVENT_PROSPECTOR
38+
#define RE_EVENT_SIGMA "(?:Sigma (?:main )?event)"
39+
#define RE_EVENT RE_EVENT_GCC "|" RE_EVENT_PROSPECTOR "|" RE_EVENT_SIGMA
3940

4041
int parse_int(const std::string &, int fallback = 0);
4142

Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--mode=json

0 commit comments

Comments
 (0)
Please sign in to comment.