[poppler] Branch 'poppler-0.12' - poppler/GfxFont.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Thu Oct 22 12:27:43 PDT 2009


 poppler/GfxFont.cc |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit c53e611cfbb2b027d2cbddb6d8fce8d84319566a
Author: Albert Astals Cid <aacid at kde.org>
Date:   Thu Oct 22 21:26:29 2009 +0200

    initialize len at 0 when reading the font fails
    
    See bug 24525 for more info

diff --git a/poppler/GfxFont.cc b/poppler/GfxFont.cc
index 0866d88..f51c100 100644
--- a/poppler/GfxFont.cc
+++ b/poppler/GfxFont.cc
@@ -489,6 +489,7 @@ char *GfxFont::readEmbFontFile(XRef *xref, int *len) {
     obj2.free();
     obj1.free();
     embFontID.num = -1;
+    *len = 0;
     return NULL;
   }
   str = obj2.getStream();


More information about the poppler mailing list