diff options
author | drh <> | 2021-02-05 17:34:47 +0000 |
---|---|---|
committer | drh <> | 2021-02-05 17:34:47 +0000 |
commit | 29f6a365ccd09fdf922125f324d13d2cac34d3e4 (patch) | |
tree | 83811b294aa34b40b3f2ff8e0bc92fb50af0de3b /src/resolve.c | |
parent | 70bd2124ed8dba89ee3ad2ccb25c5686b1d0ead5 (diff) | |
download | sqlite-29f6a365ccd09fdf922125f324d13d2cac34d3e4.tar.gz sqlite-29f6a365ccd09fdf922125f324d13d2cac34d3e4.zip |
Remove unreachable code. Fix a shift UB problem introduced yesterday
and discovered by OSSFuzz.
FossilOrigin-Name: 078dbff04a95a001bbd8690ab08038fbb5506899df8290991b53fd1122a4c30c
Diffstat (limited to 'src/resolve.c')
-rw-r--r-- | src/resolve.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/resolve.c b/src/resolve.c index 84ba82a11..720fdb760 100644 --- a/src/resolve.c +++ b/src/resolve.c @@ -112,7 +112,6 @@ static void resolveAlias( } sqlite3DbFree(db, pDup); } - ExprSetProperty(pExpr, EP_Alias); } @@ -429,7 +428,6 @@ static int lookupName( pExpr->iTable = pNC->uNC.pUpsert->regData + sqlite3TableColumnToStorage(pTab, iCol); eNewExprOp = TK_REGISTER; - ExprSetProperty(pExpr, EP_Alias); } }else #endif /* SQLITE_OMIT_UPSERT */ @@ -636,8 +634,7 @@ lookupname_end: if( cnt==1 ){ assert( pNC!=0 ); if( pParse->db->xAuth - && !ExprHasProperty(pExpr, EP_Alias) - && pExpr->op!=TK_REGISTER + && (pExpr->op==TK_COLUMN || pExpr->op==TK_TRIGGER) ){ sqlite3AuthRead(pParse, pExpr, pSchema, pNC->pSrcList); } |