File CVE-2009-0945.Qt-4.4.x.patch of Package libqt4

--- src/3rdparty/webkit/WebCore/ksvg2/svg/SVGList.h
+++ src/3rdparty/webkit/WebCore/ksvg2/svg/SVGList.h
@@ -95,7 +95,11 @@ namespace WebCore {
 
         Item insertItemBefore(Item newItem, unsigned int index, ExceptionCode&)
         {
-            m_vector.insert(index, newItem);
+            if (index < m_vector.size()) {
+                m_vector.insert(index, newItem);
+            } else {
+                m_vector.append(newItem);
+            }
             return newItem;
         }
openSUSE Build Service is sponsored by