commit b8429d2: [Minor] Disable regexp limits for hyperscan
Vsevolod Stakhov
vsevolod at highsecure.ru
Sat Nov 7 23:42:06 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-11-07 23:34:58 +0000
URL: https://github.com/rspamd/rspamd/commit/b8429d281951705448846fc62672c71b9565054d (HEAD -> master)
[Minor] Disable regexp limits for hyperscan
---
src/libserver/re_cache.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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];
}
More information about the Commits
mailing list