diff options
author | Albert Astals Cid <aacid@kde.org> | 2008-02-01 23:41:49 +0100 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2008-02-01 23:41:49 +0100 |
commit | b21198c25a16ebd1b40e27fd388940bb1d476ea4 (patch) | |
tree | ecc1689de1ad7e82f912a645e2b304a593be00e8 | |
parent | 3770d3922242b101fe8cfade67ee97b08e3a3ac8 (diff) |
Fix for end condition, init ucode to 0
Fixes crash on http://bugs.kde.org/show_bug.cgi?id=157090
-rw-r--r-- | poppler/GfxFont.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/poppler/GfxFont.cc b/poppler/GfxFont.cc index 28f070c9..fb0ae62a 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; |