1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Fix a segfault that can occur following an OOM error.

FossilOrigin-Name: 7fdd378d54754a3ffdc01c6c0a66cf6d5899a495
This commit is contained in:
dan
2014-03-03 14:20:30 +00:00
parent f21fa489b1
commit fbf0f0e1f6
3 changed files with 9 additions and 10 deletions

View File

@@ -5870,7 +5870,7 @@ void sqlite3WhereEnd(WhereInfo *pWInfo){
** the co-routine into OP_SCopy of result contained in a register.
** OP_Rowid becomes OP_Null.
*/
if( pTabItem->viaCoroutine ){
if( pTabItem->viaCoroutine && !db->mallocFailed ){
last = sqlite3VdbeCurrentAddr(v);
k = pLevel->addrBody;
pOp = sqlite3VdbeGetOp(v, k);