[poppler] Branch 'poppler-0.6' - poppler/GfxFont.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Fri Feb 1 14:42:00 PST 2008
poppler/GfxFont.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit b21198c25a16ebd1b40e27fd388940bb1d476ea4
Author: Albert Astals Cid <aacid at kde.org>
Date: Fri Feb 1 23:41:49 2008 +0100
Fix for end condition, init ucode to 0
Fixes crash on http://bugs.kde.org/show_bug.cgi?id=157090
diff --git a/poppler/GfxFont.cc b/poppler/GfxFont.cc
index 28f070c..fb0ae62 100644
--- a/poppler/GfxFont.cc
+++ b/poppler/GfxFont.cc
@@ -1731,9 +1731,9 @@ Gushort *GfxCIDFont::getCodeToGIDMap(FoFiTrueType *ff, int *mapsizep) {
getCollection()->getCString());
if ((ctu = getToUnicode()) != 0) {
CharCode cid;
- for (cid = 0;cid <= n ;cid++) {
+ for (cid = 0;cid < n ;cid++) {
int len;
- Unicode ucode;
+ Unicode ucode = 0;
len = ctu->mapToUnicode(cid,&ucode,1);
humap[cid] = ucode;
More information about the poppler
mailing list