pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Require the schema qualification in pg_temp.type_name(arg).
Date: Mon, 05 Aug 2019 14:49:41 +0000
Message-ID: <E1hueIv-0006uM-HN@gemulon.postgresql.org> (raw)

Require the schema qualification in pg_temp.type_name(arg).

Commit aa27977fe21a7dfa4da4376ad66ae37cb8f0d0b5 introduced this
restriction for pg_temp.function_name(arg); do likewise for types
created in temporary schemas.  Programs that this breaks should add
"pg_temp." schema qualification or switch to arg::type_name syntax.
Back-patch to 9.4 (all supported versions).

Reviewed by Tom Lane.  Reported by Tom Lane.

Security: CVE-2019-10208

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/21f94c51f680cefa2ea6b0d94aa8a967a375afc6

Modified Files
--------------
doc/src/sgml/config.sgml           |  4 ++++
src/backend/catalog/namespace.c    | 15 ++++++++++++++-
src/backend/parser/parse_func.c    |  7 ++++++-
src/backend/parser/parse_type.c    | 24 +++++++++++++++++++++---
src/backend/utils/adt/ruleutils.c  |  8 ++++++++
src/include/catalog/namespace.h    |  1 +
src/include/parser/parse_type.h    |  3 +++
src/test/regress/expected/temp.out | 15 +++++++++++++++
src/test/regress/sql/temp.sql      | 11 +++++++++++
9 files changed, 83 insertions(+), 5 deletions(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1hueIv-0006uM-HN@gemulon.postgresql.org>
Permalink:  ../E1hueIv-0006uM-HN@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hueIv-0006uM-HN@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: noah@leadboat.com
  Subject: Re: pgsql: Require the schema qualification in pg_temp.type_name(arg).
  In-Reply-To: <E1hueIv-0006uM-HN@gemulon.postgresql.org>
  References: <E1hueIv-0006uM-HN@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox