commit | 2b359bdbe4e590668cdfe9cce95ddfa6472ec1c4 | [log] [tgz] |
---|---|---|
author | dan <dan@noemail.net> | Thu Oct 28 11:31:23 2010 +0000 |
committer | dan <dan@noemail.net> | Thu Oct 28 11:31:23 2010 +0000 |
tree | 20c6542f7190b47175c44dca5e5d844b90d666bb | |
parent | f1f22bcc22fbfa11645cb39bfa3ec3566fdf187b [diff] [blame] |
Enforce the MAX_EXPR_DEPTH limit while building expression trees during SQL parsing. FossilOrigin-Name: 2625eee0cb7f22dba61459b689e33a03ecebb6da
diff --git a/src/expr.c b/src/expr.c index 41be162..ab66e9f 100644 --- a/src/expr.c +++ b/src/expr.c
@@ -484,6 +484,9 @@ ){ Expr *p = sqlite3ExprAlloc(pParse->db, op, pToken, 1); sqlite3ExprAttachSubtrees(pParse->db, p, pLeft, pRight); + if( p ) { + sqlite3ExprCheckHeight(pParse, p->nHeight); + } return p; }