]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] PDF: Increase JS size limit for fuzzy hashes
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 27 May 2020 15:14:31 +0000 (16:14 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 27 May 2020 15:14:31 +0000 (16:14 +0100)
lualib/lua_content/pdf.lua

index 785959dfe949f15a1d2f361b24570c100092b217..f98ad232bfcc7e1992bf6fca0b06e1725d9e7950 100644 (file)
@@ -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)