diff options
author | drh <> | 2021-10-07 13:40:29 +0000 |
---|---|---|
committer | drh <> | 2021-10-07 13:40:29 +0000 |
commit | f9751074377d444231f7e9a05404a87051f10c8a (patch) | |
tree | 0bc16bb38d130a22c65fcd4f501f72eeef2ce790 /src/util.c | |
parent | 78b2fa8610bd2d149af7746faa79f095e505550c (diff) | |
download | sqlite-f9751074377d444231f7e9a05404a87051f10c8a.tar.gz sqlite-f9751074377d444231f7e9a05404a87051f10c8a.zip |
Protect all accesses to the FuncDef.u and Expr.u unions using nearby
assert()s or branches.
FossilOrigin-Name: 9af863f065e0bef491c2ab7525194505f9516f4e6dfc789d2e3a9d2c2438533a
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c index 44c0195ca..d707a9bfc 100644 --- a/src/util.c +++ b/src/util.c @@ -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); |