[poppler] Branch 'poppler-0.10' - poppler/Form.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Wed Jan 28 13:57:00 PST 2009


 poppler/Form.cc |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 895b446bf277e476e8185c88aaa580b5134a38f8
Author: Albert Astals Cid <aacid at kde.org>
Date:   Wed Jan 28 22:53:43 2009 +0100

    Fix crash on unexepcted Form Opt value
    
    Fixes crash on bug 19790

diff --git a/poppler/Form.cc b/poppler/Form.cc
index dad706e..fb1e1d2 100644
--- a/poppler/Form.cc
+++ b/poppler/Form.cc
@@ -460,7 +460,9 @@ void FormWidgetChoice::loadDefaults ()
         obj3.free();
         obj4.free();
       } else {
-        error(-1, "FormWidgetChoice:: invalid Opt entry\n");
+        error(-1, "FormWidgetChoice:: invalid %d Opt entry\n", i);
+        parent->_setChoiceExportVal(i, new GooString(""));
+        parent->_setChoiceOptionName(i, new GooString(""));
       }
       obj2.free();
     }


More information about the poppler mailing list