]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Disable regexp limits for hyperscan
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 7 Nov 2020 23:34:58 +0000 (23:34 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 7 Nov 2020 23:34:58 +0000 (23:34 +0000)
src/libserver/re_cache.c

index 078563103673d2cc9a1bb6e53992a46e594690da..2e705260e0cb77d6fa3d889e61a5a16493bf4269 100644 (file)
@@ -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];
                }