mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-11 01:42:22 +03:00
Protect all accesses to the FuncDef.u and Expr.u unions using nearby
assert()s or branches. FossilOrigin-Name: 9af863f065e0bef491c2ab7525194505f9516f4e6dfc789d2e3a9d2c2438533a
This commit is contained in:
@@ -277,6 +277,7 @@ void sqlite3Dequote(char *z){
|
||||
z[j] = 0;
|
||||
}
|
||||
void sqlite3DequoteExpr(Expr *p){
|
||||
assert( !ExprHasProperty(p, EP_IntValue) );
|
||||
assert( sqlite3Isquote(p->u.zToken[0]) );
|
||||
p->flags |= p->u.zToken[0]=='"' ? EP_Quoted|EP_DblQuoted : EP_Quoted;
|
||||
sqlite3Dequote(p->u.zToken);
|
||||
|
||||
Reference in New Issue
Block a user