summaryrefslogtreecommitdiffstats
path: root/lualib/lua_magic/heuristics.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-28 15:48:57 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-28 15:48:57 +0100
commitf5299d51ba510e7db5a3fac7861eadcd2316499b (patch)
tree9e4566ff9d821b4c853d4144277af29560869cda /lualib/lua_magic/heuristics.lua
parentdd4b3cdeef50038332ccd28c95a9882f17f7777c (diff)
downloadrspamd-f5299d51ba510e7db5a3fac7861eadcd2316499b.tar.gz
rspamd-f5299d51ba510e7db5a3fac7861eadcd2316499b.zip
[Minor] Add limit for number of files processed in archives
Diffstat (limited to 'lualib/lua_magic/heuristics.lua')
-rw-r--r--lualib/lua_magic/heuristics.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_magic/heuristics.lua b/lualib/lua_magic/heuristics.lua
index 8aeafae90..c60824bd8 100644
--- a/lualib/lua_magic/heuristics.lua
+++ b/lualib/lua_magic/heuristics.lua
@@ -267,7 +267,7 @@ local function detect_archive_flaw(part, arch, log_obj)
if arch_type == 'zip' then
-- Find specific files/folders in zip file
- local files = arch:get_files() or {}
+ local files = arch:get_files(100) or {}
for _,file in ipairs(files) do
if file == '[Content_Types].xml' then
add_msoffice_confidence(10)