mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
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:
parent
ba0a18e1d5
commit
5b0f9d75c4
@ -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!");
|
||||
|
Loading…
Reference in New Issue
Block a user