mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-16 23:02:26 +03:00
Fix a potential NULL pointer deference in the LIKE optimization. The
problem was introduced by the addition of generated columns in check-in [b855acf1831943b3] (SQLite version 3.31.0, 2020-01-22). Reported by Wang Ke in [forum/forumpost/699b44b3ee|forum post 699b44b3ee]. FossilOrigin-Name: b9417d400f4585004f434837022709f818044d5844fe208fe01595a6b226ef7d
This commit is contained in:
@@ -263,7 +263,7 @@ static int isLikeOrGlob(
|
||||
*/
|
||||
if( pLeft->op!=TK_COLUMN
|
||||
|| sqlite3ExprAffinity(pLeft)!=SQLITE_AFF_TEXT
|
||||
|| IsVirtual(pLeft->y.pTab) /* Value might be numeric */
|
||||
|| (pLeft->y.pTab && IsVirtual(pLeft->y.pTab)) /* Might be numeric */
|
||||
){
|
||||
int isNum;
|
||||
double rDummy;
|
||||
|
||||
Reference in New Issue
Block a user