1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Avoid a NULL pointer deref in codeAllEqualityConstraints() following an OOM.

FossilOrigin-Name: c6e528c1c0f17c69c7745b018afa36694118258f
This commit is contained in:
drh
2016-09-06 16:53:53 +00:00
parent 1c12657f9a
commit aaf8a0643e
3 changed files with 9 additions and 9 deletions

View File

@ -669,7 +669,7 @@ static int codeAllEqualityTerms(
** from the RHS of an "? IN (SELECT ...)" expression. The
** sqlite3FindInIndex() routine has already ensured that the
** affinity of the comparison has been applied to the value. */
zAff[j] = SQLITE_AFF_BLOB;
if( zAff ) zAff[j] = SQLITE_AFF_BLOB;
}
}else{
Expr *pRight = pTerm->pExpr->pRight;