From: Vsevolod Stakhov Date: Mon, 29 Jun 2020 13:43:40 +0000 (+0100) Subject: [Minor] Do not decomress encrypted streams when encryption is in xref X-Git-Tag: 2.6~282 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98867787d12f6604694cdea66cc3f63c14887702;p=thirdparty%2Frspamd.git [Minor] Do not decomress encrypted streams when encryption is in xref --- diff --git a/lualib/lua_content/pdf.lua b/lualib/lua_content/pdf.lua index e47c21ef6d..8b77213af0 100644 --- a/lualib/lua_content/pdf.lua +++ b/lualib/lua_content/pdf.lua @@ -1008,6 +1008,11 @@ local function postprocess_pdf_objects(task, input, pdf) end if obj.ref then parse_object_grammar(obj, task, pdf) + + -- Special early handling + if obj.dict and obj.dict.Type and obj.dict.Type == 'XRef' then + process_xref(task, pdf, obj) + end end end