diff options
author | dan <dan@noemail.net> | 2014-03-03 14:20:30 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2014-03-03 14:20:30 +0000 |
commit | fbf0f0e1f636718d7c6541b5e2d88a4710bc98fc (patch) | |
tree | 6608232e62fc949f17ffa344f74e65e1040195db /src | |
parent | f21fa489b1261640899a45f90acb892eff8e65c8 (diff) | |
download | sqlite-fbf0f0e1f636718d7c6541b5e2d88a4710bc98fc.tar.gz sqlite-fbf0f0e1f636718d7c6541b5e2d88a4710bc98fc.zip |
Fix a segfault that can occur following an OOM error.
FossilOrigin-Name: 7fdd378d54754a3ffdc01c6c0a66cf6d5899a495
Diffstat (limited to 'src')
-rw-r--r-- | src/where.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/where.c b/src/where.c index a5dd7b59e..f13d2b504 100644 --- a/src/where.c +++ b/src/where.c @@ -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); |