Browse Source

[Minor] Disable regexp limits for hyperscan

tags/2.7
Vsevolod Stakhov 3 years ago
parent
commit
b8429d2819
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/libserver/re_cache.c

+ 3
- 1
src/libserver/re_cache.c View 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];
}


Loading…
Cancel
Save