aboutsummaryrefslogtreecommitdiff
path: root/src/wherecode.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-09-06 16:53:53 +0000
committerdrh <drh@noemail.net>2016-09-06 16:53:53 +0000
commitaaf8a0643e46e6c4a7ca5b83f0b779c21499b542 (patch)
treebc96ae569bd27de69e50210ba51ec332cb0d729c /src/wherecode.c
parent1c12657f9a5527a72986ce4fc0487ea5f5915401 (diff)
downloadsqlite-aaf8a0643e46e6c4a7ca5b83f0b779c21499b542.tar.gz
sqlite-aaf8a0643e46e6c4a7ca5b83f0b779c21499b542.zip
Avoid a NULL pointer deref in codeAllEqualityConstraints() following an OOM.
FossilOrigin-Name: c6e528c1c0f17c69c7745b018afa36694118258f
Diffstat (limited to 'src/wherecode.c')
-rw-r--r--src/wherecode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wherecode.c b/src/wherecode.c
index 13904c9c8..0b1165f02 100644
--- a/src/wherecode.c
+++ b/src/wherecode.c
@@ -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;