[poppler] splash/SplashFTFont.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Tue May 29 18:32:51 UTC 2018


 splash/SplashFTFont.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit fb4629eb4b1787332b88b330da16353e5ade7b4d
Author: Albert Astals Cid <aacid at kde.org>
Date:   Tue May 29 20:32:23 2018 +0200

    SplashFTFont: Early return if face->units_per_EM is 0
    
    fixes oss-fuzz/8617

diff --git a/splash/SplashFTFont.cc b/splash/SplashFTFont.cc
index 79b7fdd4..301be9a7 100644
--- a/splash/SplashFTFont.cc
+++ b/splash/SplashFTFont.cc
@@ -87,7 +87,7 @@ SplashFTFont::SplashFTFont(SplashFTFontFile *fontFileA, SplashCoord *matA,
   // arithmetic doesn't work so well
   textScale = splashDist(0, 0, textMat[2], textMat[3]) / size;
 
-  if (unlikely(textScale == 0)) {
+  if (unlikely(textScale == 0 || face->units_per_EM == 0)) {
     return;
   }
 


More information about the poppler mailing list