aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-11-07 23:34:58 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-11-07 23:34:58 +0000
commitb8429d281951705448846fc62672c71b9565054d (patch)
tree4c793c2ff73fafa4d5c5e429d75243e7dc27134b /src
parent874cd63ad2b66e3eb70db5c4fa35236f9d75e96e (diff)
downloadrspamd-b8429d281951705448846fc62672c71b9565054d.tar.gz
rspamd-b8429d281951705448846fc62672c71b9565054d.zip
[Minor] Disable regexp limits for hyperscan
Diffstat (limited to 'src')
-rw-r--r--src/libserver/re_cache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libserver/re_cache.c b/src/libserver/re_cache.c
index 078563103..2e705260e 100644
--- a/src/libserver/re_cache.c
+++ b/src/libserver/re_cache.c
@@ -789,10 +789,12 @@ rspamd_re_cache_process_regexp_data (struct rspamd_re_runtime *rt,
}
else {
for (i = 0; i < count; i ++) {
+ /* For Hyperscan we can probably safely disable all those limits */
+#if 0
if (rt->cache->max_re_data > 0 && lens[i] > rt->cache->max_re_data) {
lens[i] = rt->cache->max_re_data;
}
-
+#endif
rt->stat.bytes_scanned += lens[i];
}