From 6472d8493f7e82cc78b41da20a2bf19fcb4e0a7d Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Fri, 8 Sep 2017 18:26:05 +0200 Subject: SplashOutputDev: Fix crash on broken files Bug #102604 --- poppler/SplashOutputDev.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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, -- cgit v1.2.3