[poppler] splash/SplashFTFont.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Thu May 7 14:13:27 PDT 2009


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

New commits:
commit 5d328282da4713356fbe4283bd992ac2fc9010a2
Author: Albert Astals Cid <aacid at kde.org>
Date:   Thu May 7 23:11:55 2009 +0200

    bitmap->h can be 0, move to _checkoverflow variant, code already knows how to deal with NULL

diff --git a/splash/SplashFTFont.cc b/splash/SplashFTFont.cc
index c3b298a..7d5e308 100644
--- a/splash/SplashFTFont.cc
+++ b/splash/SplashFTFont.cc
@@ -243,7 +243,7 @@ GBool SplashFTFont::makeGlyph(int c, int xFrac, int yFrac,
   } else {
     rowSize = (bitmap->w + 7) >> 3;
   }
-  bitmap->data = (Guchar *)gmallocn(rowSize, bitmap->h);
+  bitmap->data = (Guchar *)gmallocn_checkoverflow(rowSize, bitmap->h);
   bitmap->freeData = gTrue;
   for (i = 0, p = bitmap->data, q = slot->bitmap.buffer;
        i < bitmap->h;


More information about the poppler mailing list