File fix-kjs-crash-regression.diff of Package kdelibs3
Index: khtml/ecma/kjs_html.cpp
===================================================================
--- khtml/ecma/kjs_html.cpp (revision 602711)
+++ khtml/ecma/kjs_html.cpp (revision 602712)
@@ -1174,7 +1174,7 @@
}
const HashTable* table = classInfo()->propHashTable; // get the right hashtable
- const HashEntry* entry = Lookup::findEntry(table, propertyName);
+ const HashEntry* entry = table ? Lookup::findEntry(table, propertyName) : 0;
if (entry) {
if (entry->attr & Function)
return lookupOrCreateFunction<KJS::HTMLElementFunction>(exec, propertyName, this, entry->value, entry->params, entry->attr);
@@ -2381,7 +2381,7 @@
}
const HashTable* table = classInfo()->propHashTable; // get the right hashtable
- const HashEntry* entry = Lookup::findEntry(table, propertyName);
+ const HashEntry* entry = table ? Lookup::findEntry(table, propertyName) : 0;
if (entry) {
if (entry->attr & Function) // function: put as override property
{