-
Notifications
You must be signed in to change notification settings - Fork 769
Closed
Description
HS_FLAG_ALL is not include all valid hyperscan flags, which may cause flags check failed, eg
Lines 75 to 84 in c00683d
| #define HS_FLAG_ALL ( HS_FLAG_CASELESS \ | |
| | HS_FLAG_DOTALL \ | |
| | HS_FLAG_MULTILINE \ | |
| | HS_FLAG_UTF8 \ | |
| | HS_FLAG_UCP \ | |
| | HS_FLAG_PREFILTER \ | |
| | HS_FLAG_SINGLEMATCH \ | |
| | HS_FLAG_ALLOWEMPTY \ | |
| | HS_FLAG_SOM_LEFTMOST) | |
eg, flag HS_FLAG_COMBINATION failed to pass check and throw an Unrecognised flag exception
hyperscan/src/compiler/compiler.cpp
Lines 180 to 183 in c00683d
| if (flags & ~HS_FLAG_ALL) { | |
| DEBUG_PRINTF("Unrecognised flag, flags=%u.\n", flags); | |
| throw CompileError("Unrecognised flag."); | |
| } |
Metadata
Metadata
Assignees
Labels
No labels