[poppler] glib/poppler-document.cc
Carlos Garcia Campos
carlosgc at kemper.freedesktop.org
Sun Sep 6 01:46:59 PDT 2009
glib/poppler-document.cc | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 1cb25a4adaaf3e2da50724312a3db6928991f425
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date: Sun Sep 6 10:45:56 2009 +0200
[glib] Ignore attachments with an invalid embedded file
Fixes bug #10386
diff --git a/glib/poppler-document.cc b/glib/poppler-document.cc
index a4ac329..e5b2854 100644
--- a/glib/poppler-document.cc
+++ b/glib/poppler-document.cc
@@ -468,6 +468,10 @@ poppler_document_get_attachments (PopplerDocument *document)
EmbFile *emb_file;
emb_file = catalog->embeddedFile (i);
+ if (!emb_file->isOk ()) {
+ delete emb_file;
+ continue;
+ }
attachment = _poppler_attachment_new (document, emb_file);
delete emb_file;
More information about the poppler
mailing list