From f5299d51ba510e7db5a3fac7861eadcd2316499b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 28 Apr 2020 15:48:57 +0100 Subject: [Minor] Add limit for number of files processed in archives --- lualib/lua_magic/heuristics.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lualib/lua_magic/heuristics.lua') 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) -- cgit v1.2.3