diff options
author | drh <> | 2021-11-12 14:39:49 +0000 |
---|---|---|
committer | drh <> | 2021-11-12 14:39:49 +0000 |
commit | 146121f5cb5ca97da56c1bf48bc22ba7629409c9 (patch) | |
tree | 151bc248dab24612dd749d7a0e11a0c56d345c64 /src/expr.c | |
parent | 9135ebb7db2fd24819c4d76ea7a6e9fedc78489e (diff) | |
download | sqlite-146121f5cb5ca97da56c1bf48bc22ba7629409c9.tar.gz sqlite-146121f5cb5ca97da56c1bf48bc22ba7629409c9.zip |
Improved handling of OOM while reallocating a column name to add type
information. dbsqlfuzz 5a195b4233649e49e0aa34f1b743ca192d85b198
FossilOrigin-Name: 5995dd4de4997c43b43befc1281ef6378f33f781134c7f368299d64db2344f1d
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c index 62d2691bc..126a870f9 100644 --- a/src/expr.c +++ b/src/expr.c @@ -2803,7 +2803,8 @@ int sqlite3FindInIndex( CollSeq *pReq = sqlite3BinaryCompareCollSeq(pParse, pLhs, pRhs); int j; - assert( pReq!=0 || pRhs->iColumn==XN_ROWID || pParse->nErr ); + assert( pReq!=0 || pRhs->iColumn==XN_ROWID + || pParse->nErr || db->mallocFailed ); for(j=0; j<nExpr; j++){ if( pIdx->aiColumn[j]!=pRhs->iColumn ) continue; assert( pIdx->azColl[j] ); |