diff options
author | Albert Astals Cid <aacid@kde.org> | 2010-09-21 19:01:36 +0100 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2010-09-21 19:01:36 +0100 |
commit | e853106b58d6b4b0467dbd6436c9bb1cfbd372cf (patch) | |
tree | 0310b9888782de6ade8b242cfbde80ea60e83c4d | |
parent | 3422638b2a39cbdd33a114a7d7debc0a5f688501 (diff) |
Properly initialize parser
Fixes crash in broken pdf provided by Joel Voss of Leviathan Security Group
-rw-r--r-- | poppler/Gfx.cc | 2 |
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); |