]> git.ipfire.org Git - thirdparty/sqlite.git/commit
Ensure that all expressions that are to be evaluated once at the start of
authordrh <drh@noemail.net>
Sat, 4 Aug 2018 15:16:20 +0000 (15:16 +0000)
committerdrh <drh@noemail.net>
Sat, 4 Aug 2018 15:16:20 +0000 (15:16 +0000)
commitb8b066906589a9d286046923b7f0c614d20df90d
treefdad92131c2b893fa275ec3b94e6d5ba17719c51
parenta4b5fb55f3985d604ea67e604f53b2b6821bafd7
Ensure that all expressions that are to be evaluated once at the start of
a prepared statement (the Parse.pConstExpr expressions) pass the
sqlite3ExprIsConstantNotJoin() test. It is not sufficient to pass just the
sqlite3ExprIsConstant() test as that would allow through column references
that are bound to constants by the WHERE clause in the constant propagation
optimization.  This fixes a problem discovered by OSSFuzz.

FossilOrigin-Name: 8bc7f84c39f913b0b0f5e9f5fd9d7dd8bda8422248c069712b6992c32c759a83
manifest
manifest.uuid
src/expr.c