aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_content
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-27 16:14:31 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-27 16:14:31 +0100
commitfdb95403bfa6a2cf33cbb1424b62caaf7245525d (patch)
tree034ddcbded6493ea248117f06a598bbae93fe71d /lualib/lua_content
parentb1e451f0e19a5ca56498a1458532ffb31296615d (diff)
downloadrspamd-fdb95403bfa6a2cf33cbb1424b62caaf7245525d.tar.gz
rspamd-fdb95403bfa6a2cf33cbb1424b62caaf7245525d.zip
[Minor] PDF: Increase JS size limit for fuzzy hashes
Diffstat (limited to 'lualib/lua_content')
-rw-r--r--lualib/lua_content/pdf.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_content/pdf.lua b/lualib/lua_content/pdf.lua
index 785959dfe..f98ad232b 100644
--- a/lualib/lua_content/pdf.lua
+++ b/lualib/lua_content/pdf.lua
@@ -114,7 +114,7 @@ local config = {
url_extraction = true,
enabled = true,
js_fuzzy = true, -- Generate fuzzy hashes from PDF javascripts
- min_js_fuzzy = 32, -- Minimum size of js to be considered as a fuzzy
+ min_js_fuzzy = 256, -- Minimum size of js to be considered as a fuzzy
openaction_fuzzy_only = false, -- Generate fuzzy from all scripts
max_pdf_objects = 10000, -- Maximum number of objects to be considered
max_pdf_trailer = 10 * 1024 * 1024, -- Maximum trailer size (to avoid abuse)