diff options
author | drh <drh@noemail.net> | 2020-02-19 15:39:46 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2020-02-19 15:39:46 +0000 |
commit | 1cfee74a2812b8f09e8b8ecf419a69b19de16b79 (patch) | |
tree | f5ea63d01c0c3534bee131f9d5be621d895216b4 /src/resolve.c | |
parent | 4b9e73689857bd4449145515e7d45bec1020e090 (diff) | |
download | sqlite-1cfee74a2812b8f09e8b8ecf419a69b19de16b79.tar.gz sqlite-1cfee74a2812b8f09e8b8ecf419a69b19de16b79.zip |
Fix a potential NULL pointer dereference following OOM. Problem discovered
by dbsqlfuzz. Test case in TH3.
FossilOrigin-Name: 5aeb5a2d295e10d5fc1d456b3acaf8ac13c04cb5bb71a8c4571541d366e95887
Diffstat (limited to 'src/resolve.c')
-rw-r--r-- | src/resolve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve.c b/src/resolve.c index 119a07fd2..05ef0c06e 100644 --- a/src/resolve.c +++ b/src/resolve.c @@ -1051,7 +1051,7 @@ static int resolveExprStep(Walker *pWalker, Expr *pExpr){ assert( !ExprHasProperty(pExpr, EP_Reduced) ); /* Handle special cases of "x IS TRUE", "x IS FALSE", "x IS NOT TRUE", ** and "x IS NOT FALSE". */ - if( pRight->op==TK_ID ){ + if( pRight && pRight->op==TK_ID ){ int rc = resolveExprStep(pWalker, pRight); if( rc==WRC_Abort ) return WRC_Abort; if( pRight->op==TK_TRUEFALSE ){ |