diff options
author | Albert Astals Cid <aacid@kde.org> | 2018-05-24 23:29:55 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2018-05-24 23:29:55 +0200 |
commit | 67be3708cc4dea9e03f5d0ce5b0214fff35748f2 (patch) | |
tree | 302574a87f95c38a7a7451abcd1680b3665d5fb0 /splash | |
parent | c758fc980834882528eeae82568494e46d189cc5 (diff) |
SplashFTFont::makeGlyph: Fix use of uninitialized data
caused by the bugfix to not divide by zero
Diffstat (limited to 'splash')
-rw-r--r-- | splash/SplashFTFont.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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; |