diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-11-07 23:34:58 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-11-07 23:34:58 +0000 |
commit | b8429d281951705448846fc62672c71b9565054d (patch) | |
tree | 4c793c2ff73fafa4d5c5e429d75243e7dc27134b /src | |
parent | 874cd63ad2b66e3eb70db5c4fa35236f9d75e96e (diff) | |
download | rspamd-b8429d281951705448846fc62672c71b9565054d.tar.gz rspamd-b8429d281951705448846fc62672c71b9565054d.zip |
[Minor] Disable regexp limits for hyperscan
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/re_cache.c | 4 |
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]; } |