From: Wang, Xiang W Date: Wed, 3 Jul 2019 03:37:21 +0000 (-0400) Subject: Chimera: don't disable single match flag when checking Hyperscan support X-Git-Tag: v5.2.0^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=177537313a00569b86cab8d5edd3823c61c9d487;p=thirdparty%2Fvectorscan.git Chimera: don't disable single match flag when checking Hyperscan support --- diff --git a/chimera/ch_compile.cpp b/chimera/ch_compile.cpp index 374bd7ad..46536f31 100644 --- a/chimera/ch_compile.cpp +++ b/chimera/ch_compile.cpp @@ -322,7 +322,7 @@ PatternData::PatternData(const char *pattern, u32 flags, u32 idx, u32 id_in, ch_misc_free(info); u32 guardflags; - guardflags = (flags | HS_FLAG_PREFILTER) & ~HS_FLAG_SINGLEMATCH; + guardflags = flags | HS_FLAG_PREFILTER; guard = isHyperscanSupported(pattern, guardflags, platform); } else { // We can't even prefilter this pattern, so we're dependent on Big Dumb