summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2017-09-08 18:26:05 +0200
committerAlbert Astals Cid <aacid@kde.org>2017-09-08 18:27:25 +0200
commit6472d8493f7e82cc78b41da20a2bf19fcb4e0a7d (patch)
treee0e9d5a90bdb927d9c08f5fa75048fff56da4d54
parent3ab44e2a77b560198c1e1616cfb39c1ac7374e29 (diff)
SplashOutputDev: Fix crash on broken files
Bug #102604
-rw-r--r--poppler/SplashOutputDev.cc6
1 files changed, 5 insertions, 1 deletions
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,