File abiword-3.0.0-html_segfault.patch of Package abiword

Index: src/wp/impexp/xp/ie_exp_HTML_Listener.cpp
===================================================================
--- src/wp/impexp/xp/ie_exp_HTML_Listener.cpp	(revision 33530)
+++ src/wp/impexp/xp/ie_exp_HTML_Listener.cpp	(revision 33531)
@@ -2232,12 +2232,18 @@
                 _openList(api, true);
             }
         }
-        
-    }else
+    }
+    else
     {
-        const gchar* szListStyle;
+        const gchar* szListStyle = NULL;
         pAP->getProperty("list-style", szListStyle);
-        bool isOrdered = g_ascii_strcasecmp(szListStyle, "Bullet List") != 0;
+        bool isOrdered = szListStyle
+			&& (g_ascii_strcasecmp(szListStyle, "Bullet List") != 0);
+#ifdef DEBUG
+        if(!szListStyle) {
+            UT_DEBUGMSG(("***BUG*** szListStyle is NULL - http://bugzilla.abisource.com/show_bug.cgi?id=13564\n"));
+        }
+#endif
         ListInfo info;
         if (iCurrentLevel == 0)
         {
openSUSE Build Service is sponsored by