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

New commits:
commit 67be3708cc4dea9e03f5d0ce5b0214fff35748f2
Author: Albert Astals Cid <[email protected]>
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;
_______________________________________________
poppler mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to