poppler/CairoFontEngine.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 08c9678b0f8d972552487a89a5926341bcc634a2
Author: Carlos Garcia Campos <carlo...@gnome.org>
Date:   Sun Oct 17 14:22:57 2010 +0200

    [cairo] Fix a crash when redering documents with invalid type 3 fonts

diff --git a/poppler/CairoFontEngine.cc b/poppler/CairoFontEngine.cc
index 0a627aa..25cf5b1 100644
--- a/poppler/CairoFontEngine.cc
+++ b/poppler/CairoFontEngine.cc
@@ -693,7 +693,7 @@ CairoType3Font *CairoType3Font::create(GfxFont *gfxFont, 
XRef *xref,
   codeToGIDLen = 256;
   for (i = 0; i < 256; ++i) {
     codeToGID[i] = 0;
-    if ((name = enc[i])) {
+    if (charProcs && (name = enc[i])) {
       for (j = 0; j < charProcs->getLength(); j++) {
        if (strcmp(name, charProcs->getKey(j)) == 0) {
          codeToGID[i] = (Gushort) j;
_______________________________________________
poppler mailing list
poppler@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to