You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-text/poppler/files/poppler-0.57.0-CVE-2017-149...

33 lines
1009 B

From 876e7f76159e2b12ee7d2d396f327dd2cc90bcb0 Mon Sep 17 00:00:00 2001
From: Albert Astals Cid <aacid@kde.org>
Date: Fri, 8 Sep 2017 18:26:05 +0200
Subject: [PATCH 3/3] SplashOutputDev: Fix crash on broken files
Bug #102604
(cherry picked from commit 6472d8493f7e82cc78b41da20a2bf19fcb4e0a7d)
---
poppler/SplashOutputDev.cc | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
index 5502be64..46b55a42 100644
--- a/poppler/SplashOutputDev.cc
+++ b/poppler/SplashOutputDev.cc
@@ -2714,7 +2714,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,
--
2.14.1