Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > 616f517cd9d4be7b6c770b454aab19da > files > 25

poppler-0.52.0-3.11.mga6.src.rpm

From 6472d8493f7e82cc78b41da20a2bf19fcb4e0a7d Mon Sep 17 00:00:00 2001
From: Albert Astals Cid <aacid@kde.org>
Date: Fri, 8 Sep 2017 18:26:05 +0200
Subject: SplashOutputDev: Fix crash on broken files

Bug #102604

diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
index 60edb8a..4f4128f 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,
-- 
cgit v0.10.2