summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2010-09-21 19:01:36 +0100
committerAlbert Astals Cid <aacid@kde.org>2010-09-21 19:01:36 +0100
commite853106b58d6b4b0467dbd6436c9bb1cfbd372cf (patch)
tree0310b9888782de6ade8b242cfbde80ea60e83c4d
parent3422638b2a39cbdd33a114a7d7debc0a5f688501 (diff)
Properly initialize parser
Fixes crash in broken pdf provided by Joel Voss of Leviathan Security Group
-rw-r--r--poppler/Gfx.cc2
1 files changed, 2 insertions, 0 deletions
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);