rpms/kdelibs/F-9 kdelibs-4.0.5-khtml-ecma-empty-array-crash.patch, NONE, 1.1 kdelibs.spec, 1.328, 1.329

Lukas Tinkl (ltinkl) fedora-extras-commits at redhat.com
Tue Jul 1 15:27:14 UTC 2008


Author: ltinkl

Update of /cvs/extras/rpms/kdelibs/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15535

Modified Files:
	kdelibs.spec 
Added Files:
	kdelibs-4.0.5-khtml-ecma-empty-array-crash.patch 
Log Message:
fix crash on empty array access in ECMA (kdebug:164391)


kdelibs-4.0.5-khtml-ecma-empty-array-crash.patch:

--- NEW FILE kdelibs-4.0.5-khtml-ecma-empty-array-crash.patch ---
--- khtml/ecma/kjs_css.cpp	2008/06/29 19:24:47	826073
+++ khtml/ecma/kjs_css.cpp	2008/06/29 19:25:06	826074
@@ -75,8 +75,7 @@
     // syntax for accessing properties, which camel-cases them
     // and can add prefixes to produce things like pixelFoo
     QString prop = p.qstring();
-    int i = prop.length();
-    while ( --i ) {
+    for (int i = prop.length() - 1; i >= 0; --i) {
         char c = prop[i].toLatin1();
         if ( c >= 'A' && c <= 'Z' )
             prop.insert( i, '-' );


Index: kdelibs.spec
===================================================================
RCS file: /cvs/extras/rpms/kdelibs/F-9/kdelibs.spec,v
retrieving revision 1.328
retrieving revision 1.329
diff -u -r1.328 -r1.329
--- kdelibs.spec	27 Jun 2008 01:49:42 -0000	1.328
+++ kdelibs.spec	1 Jul 2008 15:26:15 -0000	1.329
@@ -1,7 +1,7 @@
 
 Summary: K Desktop Environment 4 - Libraries
 Version: 4.0.5
-Release: 4%{?dist}
+Release: 5%{?dist}
 
 %if 0%{?fedora} > 8
 Name: kdelibs
@@ -85,6 +85,8 @@
 Patch21: kdelibs-4.0.5-strigi-metainfo.patch
 # kdebug:127793: Renaming in FTP overwrites existing files without confirmation
 Patch22: kdelibs-4.0.5-kio-ftp-overwrite.patch
+# kdebug:164391: Crash when doing [""]= on CSSStyleDeclaration
+Patch23: kdelibs-4.0.5-khtml-ecma-empty-array-crash.patch
 
 ## upstream patches
 Patch100: kdelibs-4.0.4-khtml-stylesheet.patch
@@ -211,6 +213,7 @@
 %patch20 -p1 -b .kio-subjob
 %patch21 -p1 -b .strigi-metainfo
 %patch22 -p1 -b .kio-ftp-overwrite
+%patch23 -p0 -b .khtml-ecma-empty-array-crash
 
 # upstream patches
 %patch100 -p1 -b .khtml-stylesheet
@@ -374,6 +377,9 @@
 
 
 %changelog
+* Tue Jul  1 2008 Lukáš Tinkl <ltinkl at redhat.com> - 4.0.5-5
+- fix crash on empty array access in ECMA (kdebug:164391)
+
 * Fri Jun 27 2008 Kevin Kofler <Kevin at tigcc.ticalc.org> - 4.0.5-4
 - fix kstandarddirs patch so /usr/libexec/kde4 is found before /usr/bin (see
   also #453063, ensures the KDE 4 versions of kdesu, lnusertemp etc. are used)




More information about the fedora-extras-commits mailing list