diff options
author | Albert Astals Cid <aacid@kde.org> | 2009-05-07 23:11:55 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2009-05-07 23:11:55 +0200 |
commit | 5d328282da4713356fbe4283bd992ac2fc9010a2 (patch) | |
tree | a38e267b006a88624126eb155c5a51a66ffd87e8 | |
parent | 5b0fb6f94d6d54b1b0c97762db61e2ab0dd07c85 (diff) |
bitmap->h can be 0, move to _checkoverflow variant, code already knows how to deal with NULL
-rw-r--r-- | splash/SplashFTFont.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/splash/SplashFTFont.cc b/splash/SplashFTFont.cc index c3b298af..7d5e3084 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; |