[poppler] poppler/SplashOutputDev.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Fri Sep 8 16:27:30 UTC 2017


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

New commits:
commit 6472d8493f7e82cc78b41da20a2bf19fcb4e0a7d
Author: Albert Astals Cid <aacid at kde.org>
Date:   Fri Sep 8 18:26:05 2017 +0200

    SplashOutputDev: Fix crash on broken files
    
    Bug #102604

diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
index 60edb8ac..4f4128fd 100644
--- a/poppler/SplashOutputDev.cc
+++ b/poppler/SplashOutputDev.cc
@@ -2716,7 +2716,11 @@ void SplashOutputDev::endType3Char(GfxState *state) {
 }
 
 void SplashOutputDev::type3D0(GfxState *state, double wx, double wy) {
-  t3GlyphStack->haveDx = gTrue;
+  if (likely(t3GlyphStack != nullptr)) {
+    t3GlyphStack->haveDx = gTrue;
+  } else {
+    error(errSyntaxWarning, -1, "t3GlyphStack was null in SplashOutputDev::type3D0");
+  }
 }
 
 void SplashOutputDev::type3D1(GfxState *state, double wx, double wy,


More information about the poppler mailing list