]> granicus.if.org Git - postgresql/commit
Further fixes to the pg_get_expr() security fix in back branches.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 25 Sep 2010 19:57:05 +0000 (15:57 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 25 Sep 2010 20:53:26 +0000 (16:53 -0400)
commit46286d62092c2f97fdc68ff0ffa02739395340e9
treedd476926a30b8596704ac79992e452d0e8887c0d
parent74515dc69b6ad6b5c532745d50f4006df434052c
Further fixes to the pg_get_expr() security fix in back branches.

It now emerges that the JDBC driver expects to be able to use pg_get_expr()
on an output of a sub-SELECT.  So extend the check logic to be able to recurse
into a sub-SELECT to see if the argument is ultimately coming from an
appropriate column.  Per report from Thomas Kellerer.
src/backend/parser/parse_func.c