diff options
author | drh <> | 2021-10-07 17:43:30 +0000 |
---|---|---|
committer | drh <> | 2021-10-07 17:43:30 +0000 |
commit | a4eeccdfdf9a9b4a5a007d17ac51f124656272d9 (patch) | |
tree | 88ceffcbf0266114987be591131990addc08ca46 /src/walker.c | |
parent | 9d43db5b5c82a4242b97cd85c8950c3fcd1d6961 (diff) | |
download | sqlite-a4eeccdfdf9a9b4a5a007d17ac51f124656272d9.tar.gz sqlite-a4eeccdfdf9a9b4a5a007d17ac51f124656272d9.zip |
Protect all accesses to the Expr.x union using nearby assert()s and branches.
FossilOrigin-Name: 8eaa1d4a98b24adf245bbd2fe9212aa6a924a0f09c445906d7f87574f36a7423
Diffstat (limited to 'src/walker.c')
-rw-r--r-- | src/walker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/walker.c b/src/walker.c index 8c0308473..f24c052d6 100644 --- a/src/walker.c +++ b/src/walker.c @@ -75,7 +75,7 @@ static SQLITE_NOINLINE int walkExpr(Walker *pWalker, Expr *pExpr){ assert( !ExprHasProperty(pExpr, EP_WinFunc) ); pExpr = pExpr->pRight; continue; - }else if( ExprHasProperty(pExpr, EP_xIsSelect) ){ + }else if( ExprUseXSelect(pExpr) ){ assert( !ExprHasProperty(pExpr, EP_WinFunc) ); if( sqlite3WalkSelect(pWalker, pExpr->x.pSelect) ) return WRC_Abort; }else{ |