зеркало из https://github.com/mozilla/pjs.git
fix for bug #393952: crash when I try to VACUUM (StorageUnicodeFunctions::likeFunction() should handle null aArgv[0] and aArgv[1])
r=sdwilsh
This commit is contained in:
Родитель
9dcc0bb9a1
Коммит
b9976d5426
|
@ -188,6 +188,9 @@ StorageUnicodeFunctions::likeFunction(sqlite3_context *p,
|
|||
return;
|
||||
}
|
||||
|
||||
if (!sqlite3_value_text16(aArgv[0]) || !sqlite3_value_text16(aArgv[1]))
|
||||
return;
|
||||
|
||||
nsDependentString A(static_cast<const PRUnichar *>(sqlite3_value_text16(aArgv[1])));
|
||||
nsDependentString B(static_cast<const PRUnichar *>(sqlite3_value_text16(aArgv[0])));
|
||||
NS_ASSERTION(!B.IsEmpty(), "LIKE string must not be null!");
|
||||
|
|
Загрузка…
Ссылка в новой задаче