[poppler] splash/SplashFTFont.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Thu May 24 21:30:57 UTC 2018


 splash/SplashFTFont.cc |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 67be3708cc4dea9e03f5d0ce5b0214fff35748f2
Author: Albert Astals Cid <aacid at kde.org>
Date:   Thu May 24 23:29:55 2018 +0200

    SplashFTFont::makeGlyph: Fix use of uninitialized data
    
    caused by the bugfix to not divide by zero

diff --git a/splash/SplashFTFont.cc b/splash/SplashFTFont.cc
index 61339ef3..0b2b6afe 100644
--- a/splash/SplashFTFont.cc
+++ b/splash/SplashFTFont.cc
@@ -277,6 +277,10 @@ GBool SplashFTFont::makeGlyph(int c, int xFrac, int yFrac,
   Guchar *p, *q;
   int i;
 
+  if (unlikely(textScale == 0)) {
+    return gFalse;
+  }
+
   ff = (SplashFTFontFile *)fontFile;
 
   ff->face->size = sizeObj;


More information about the poppler mailing list