[poppler] poppler/Form.cc
Carlos Garcia Campos
carlosgc at kemper.freedesktop.org
Thu Jan 17 05:54:58 PST 2008
poppler/Form.cc | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 9ec1b28dcdade12498b94b650c26483581294ee6
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date: Thu Jan 17 14:54:34 2008 +0100
Fix a crash when a form field contains reference to non existant children
diff --git a/poppler/Form.cc b/poppler/Form.cc
index baddc7f..887e1dd 100644
--- a/poppler/Form.cc
+++ b/poppler/Form.cc
@@ -675,6 +675,10 @@ FormField::FormField(XRef* xrefA, Object *aobj, const Ref& aref, Form* aform, Fo
Object childRef;
array->get(i, &obj2);
array->getNF(i, &childRef);
+ if (!obj2.isDict ()) {
+ error (-1, "Reference to an invalid or non existant object");
+ continue;
+ }
//field child
if (dict->lookup ("FT", &obj3)->isName()) {
// If I'm not a generic container field and my children
More information about the poppler
mailing list