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

New commits:
commit 4ea7ac960d9ecb6a407d0e660312f5701d3dcd49
Author: Albert Astals Cid <[email protected]>
Date:   Fri May 25 16:35:49 2018 +0200

    SplashFTFont::getGlyphPath: early return if textScale == 0
    
    fixes oss-fuzz/8529

diff --git a/splash/SplashFTFont.cc b/splash/SplashFTFont.cc
index 0b2b6afe..1f1c6ada 100644
--- a/splash/SplashFTFont.cc
+++ b/splash/SplashFTFont.cc
@@ -415,6 +415,10 @@ SplashPath *SplashFTFont::getGlyphPath(int c) {
   FT_UInt gid;
   FT_Glyph glyph;
 
+  if (unlikely(textScale == 0)) {
+    return nullptr;
+  }
+
   ff = (SplashFTFontFile *)fontFile;
   ff->face->size = sizeObj;
   FT_Set_Transform(ff->face, &textMatrix, nullptr);
_______________________________________________
poppler mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to