aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libutil/map.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libutil/map.c b/src/libutil/map.c
index eaaea4ac0..07ce616c2 100644
--- a/src/libutil/map.c
+++ b/src/libutil/map.c
@@ -2278,6 +2278,12 @@ rspamd_re_map_finalize (struct rspamd_regexp_map *re_map)
map = re_map->map;
+ if (!(map->cfg->libs_ctx->crypto_ctx->cpu_config & CPUID_SSSE3)) {
+ msg_info_map ("disable hyperscan for map %s, ssse3 instructons are not supported by CPU",
+ map->name);
+ return;
+ }
+
if (hs_populate_platform (&plt) != HS_SUCCESS) {
msg_err_map ("cannot populate hyperscan platform");
return;