commit 9886778: [Minor] Do not decomress encrypted streams when encryption is in xref

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Jun 29 13:49:08 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-06-29 14:43:40 +0100
URL: https://github.com/rspamd/rspamd/commit/98867787d12f6604694cdea66cc3f63c14887702 (HEAD -> master)

[Minor] Do not decomress encrypted streams when encryption is in xref

---
 lualib/lua_content/pdf.lua | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lualib/lua_content/pdf.lua b/lualib/lua_content/pdf.lua
index e47c21ef6..8b77213af 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
 


More information about the Commits mailing list