poppler/GfxFont.cc

View: New views
1 Messages — Rating Filter:   Alert me  

poppler/GfxFont.cc

by Albert Astals Cid-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

New commits:
commit 4a9bdd30dc353865685e03eb1c1ac6093797695a
Author: Albert Astals Cid <aacid@...>
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();
_______________________________________________
poppler mailing list
poppler@...
http://lists.freedesktop.org/mailman/listinfo/poppler