mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
Chimera: don't disable single match flag when checking Hyperscan support
This commit is contained in:
parent
435cd23823
commit
177537313a
@ -322,7 +322,7 @@ PatternData::PatternData(const char *pattern, u32 flags, u32 idx, u32 id_in,
|
|||||||
ch_misc_free(info);
|
ch_misc_free(info);
|
||||||
|
|
||||||
u32 guardflags;
|
u32 guardflags;
|
||||||
guardflags = (flags | HS_FLAG_PREFILTER) & ~HS_FLAG_SINGLEMATCH;
|
guardflags = flags | HS_FLAG_PREFILTER;
|
||||||
guard = isHyperscanSupported(pattern, guardflags, platform);
|
guard = isHyperscanSupported(pattern, guardflags, platform);
|
||||||
} else {
|
} else {
|
||||||
// We can't even prefilter this pattern, so we're dependent on Big Dumb
|
// We can't even prefilter this pattern, so we're dependent on Big Dumb
|
||||||
|
Loading…
x
Reference in New Issue
Block a user