]> granicus.if.org Git - postgresql/commit
Fix tuple printing in error message of tuple routing for partitions
authorMichael Paquier <michael@paquier.xyz>
Mon, 6 May 2019 12:44:39 +0000 (21:44 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 6 May 2019 12:44:39 +0000 (21:44 +0900)
commit52635c276fe352276c157ccea36d7655729d328d
tree282733055560993e348f3bd24e59fc90d3797d66
parent98dad4cd48e362090b30187441e8c116afb74f58
Fix tuple printing in error message of tuple routing for partitions

With correctly crafted DDLs, this could lead to disclosure of arbitrary
backend memory a user may have no right to access.  This impacts only
REL_11_STABLE, as the issue has been introduced by 34295b8.

On HEAD, add regression tests to cover this issue in the future.

Author: Michael Paquier
Reviewed-by: Noah Misch
Security: CVE-2019-10129
src/backend/executor/execPartition.c
src/test/regress/expected/insert.out
src/test/regress/sql/insert.sql