Chimera: don't disable single match flag when checking Hyperscan support

This commit is contained in:
Wang, Xiang W 2019-07-02 23:37:21 -04:00 committed by Chang, Harry
parent 435cd23823
commit 177537313a

View File

@ -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