commit fdb9540: [Minor] PDF: Increase JS size limit for fuzzy hashes

Vsevolod Stakhov vsevolod at highsecure.ru
Wed May 27 16:21:16 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-05-27 16:14:31 +0100
URL: https://github.com/rspamd/rspamd/commit/fdb95403bfa6a2cf33cbb1424b62caaf7245525d

[Minor] PDF: Increase JS size limit for fuzzy hashes

---
 lualib/lua_content/pdf.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)


More information about the Commits mailing list