[poppler] poppler/GfxFont.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Fri Feb 1 14:55:50 PST 2008


 poppler/GfxFont.cc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 6f11ef660540fd13aad1350385beb90758ca86af
Author: Albert Astals Cid <aacid at kde.org>
Date:   Fri Feb 1 23:55:37 2008 +0100

    Fix for end condition, init ucode to 0

diff --git a/poppler/GfxFont.cc b/poppler/GfxFont.cc
index 2d9abd4..655e259 100644
--- a/poppler/GfxFont.cc
+++ b/poppler/GfxFont.cc
@@ -1892,9 +1892,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*N_UCS_CANDIDATES] = ucode;


More information about the poppler mailing list