summaryrefslogtreecommitdiff
authorAlbert Astals Cid <aacid@kde.org>2010-09-21 18:01:36 (GMT)
committer Albert Astals Cid <aacid@kde.org>2010-09-21 18:01:36 (GMT)
commite853106b58d6b4b0467dbd6436c9bb1cfbd372cf (patch) (side-by-side diff)
tree0310b9888782de6ade8b242cfbde80ea60e83c4d
parent3422638b2a39cbdd33a114a7d7debc0a5f688501 (diff)
downloadpoppler-e853106b58d6b4b0467dbd6436c9bb1cfbd372cf.zip
poppler-e853106b58d6b4b0467dbd6436c9bb1cfbd372cf.tar.gz
Properly initialize parser
Fixes crash in broken pdf provided by Joel Voss of Leviathan Security Group
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--poppler/Gfx.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc
index fc004b8..919086e 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);