[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/apps
From:       David Faure <faure () kde ! org>
Date:       2008-09-16 9:11:58
Message-ID: 1221556318.422862.1457.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 861479 by dfaure:

Apply crash fix (on broken nsplugin cache) from Luigi Toscano, posted to kfm-devel.... on 04/11/2007 (!!)


 M  +4 -0      konqueror/settings/konqhtml/pluginopts.cpp  
 M  +4 -0      nsplugins/nspluginloader.cpp  


--- trunk/KDE/kdebase/apps/konqueror/settings/konqhtml/pluginopts.cpp #861478:861479
@@ -591,6 +591,10 @@
         }
 
         QStringList desc = line.split(':');
+        // avoid crash on broken lines
+        if (desc.size()<2)
+            continue;
+
         QString mime = desc[0].trimmed();
         QString name;
         QString suffixes;
--- trunk/KDE/kdebase/apps/nsplugins/nspluginloader.cpp #861478:861479
@@ -243,6 +243,10 @@
         }
 
       QStringList desc = line.split(':', QString::KeepEmptyParts);
+      // avoid crash on broken lines
+      if (desc.size()<2)
+        continue;
+
       QString mime = desc[0].trimmed();
       QStringList suffixes;
       // If there are no suffixes, this would cause a crash
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic