splash/SplashFTFont.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit fb4629eb4b1787332b88b330da16353e5ade7b4d Author: Albert Astals Cid <[email protected]> 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; } _______________________________________________ poppler mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/poppler
