From e853106b58d6b4b0467dbd6436c9bb1cfbd372cf Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Tue, 21 Sep 2010 19:01:36 +0100 Subject: Properly initialize parser Fixes crash in broken pdf provided by Joel Voss of Leviathan Security Group --- poppler/Gfx.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc index fc004b8b..919086e0 100644 --- a/poppler/Gfx.cc +++ b/poppler/Gfx.cc @@ -536,6 +536,7 @@ Gfx::Gfx(XRef *xrefA, OutputDev *outA, int pageNum, Dict *resDict, Catalog *cata drawText = gFalse; maskHaveCSPattern = gFalse; mcStack = NULL; + parser = NULL; // start the resource stack res = new GfxResources(xref, resDict, NULL); @@ -590,6 +591,7 @@ Gfx::Gfx(XRef *xrefA, OutputDev *outA, Dict *resDict, Catalog *catalogA, drawText = gFalse; maskHaveCSPattern = gFalse; mcStack = NULL; + parser = NULL; // start the resource stack res = new GfxResources(xref, resDict, NULL); -- cgit v1.2.3