[poppler] poppler/Form.cc

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


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

New commits:
commit 1fc342eadcbbb41302f190b215c5daf23c9ec9b1
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 be58180..89e18a3 100644
--- a/poppler/Form.cc
+++ b/poppler/Form.cc
@@ -449,7 +449,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