[poppler] poppler/SplashOutputDev.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Sat Oct 23 15:33:19 PDT 2010


 poppler/SplashOutputDev.cc |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit e09ddce7e21bbd62b384d9d59fbd1e0f14f7d05f
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sat Oct 23 23:33:00 2010 +0100

    Fix crash in malformed documents

diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
index 0ae5bc5..59019f4 100644
--- a/poppler/SplashOutputDev.cc
+++ b/poppler/SplashOutputDev.cc
@@ -1804,6 +1804,11 @@ void SplashOutputDev::type3D1(GfxState *state, double wx, double wy,
   double xt, yt, xMin, xMax, yMin, yMax, x1, y1;
   int i, j;
 
+  if (unlikely(t3GlyphStack == NULL)) {
+    error(-1, "t3GlyphStack was null in SplashOutputDev::type3D1");
+    return;
+  }
+
   t3Font = t3GlyphStack->cache;
 
   // check for a valid bbox


More information about the poppler mailing list