aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
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 /src/plugins
parentdd4b3cdeef50038332ccd28c95a9882f17f7777c (diff)
downloadrspamd-f5299d51ba510e7db5a3fac7861eadcd2316499b.tar.gz
rspamd-f5299d51ba510e7db5a3fac7861eadcd2316499b.zip
[Minor] Add limit for number of files processed in archives
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/mime_types.lua2
-rw-r--r--src/plugins/lua/multimap.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua
index 863e3a31a..6cf306b2b 100644
--- a/src/plugins/lua/mime_types.lua
+++ b/src/plugins/lua/mime_types.lua
@@ -434,7 +434,7 @@ local function check_mime_type(task)
end
if check then
- local fl = arch:get_files_full()
+ local fl = arch:get_files_full(1000)
local nfiles = #fl
diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua
index 876e96dc1..c3225ff25 100644
--- a/src/plugins/lua/multimap.lua
+++ b/src/plugins/lua/multimap.lua
@@ -877,7 +877,7 @@ local function multimap_callback(task, rule)
for _,p in fun.iter(fun.filter(filter_parts, parts)) do
if filter_archive(p) then
- local fnames = p:get_archive():get_files()
+ local fnames = p:get_archive():get_files(1000)
for _,fn in ipairs(fnames) do
match_filename(rule, fn)