pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Ensure that PLPGSQL_DTYPE_ROW variables have valid refname field
Date: Fri, 05 Oct 2018 16:45:51 +0000
Message-ID: <E1g8TEd-000385-3V@gemulon.postgresql.org> (raw)

Ensure that PLPGSQL_DTYPE_ROW variables have valid refname fields.

Without this, the syntax-tree-dumping functions in pl_funcs.c crash,
and there are other places that might be at risk too.  Per report
from Pavel Stehule.

Looks like I broke this in commit f9263006d, so back-patch to v11.

Discussion: https://postgr.es/m/CAFj8pRA+3f5n4642q2g8BXCKjbTd7yU9JMYAgDyHgozk6cQ-VA@mail.gmail.com

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6e526b78706a99dc52182387d0e6f84d05bd597a

Modified Files
--------------
src/pl/plpgsql/src/pl_comp.c | 2 ++
src/pl/plpgsql/src/pl_exec.c | 1 +
src/pl/plpgsql/src/pl_gram.y | 3 +++
src/pl/plpgsql/src/plpgsql.h | 7 ++++++-
4 files changed, 12 insertions(+), 1 deletion(-)



view thread (2+ messages)

Message-ID: <E1g8TEd-000385-3V@gemulon.postgresql.org>
Permalink:  ../E1g8TEd-000385-3V@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1g8TEd-000385-3V@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Ensure that PLPGSQL_DTYPE_ROW variables have valid refname field
  In-Reply-To: <E1g8TEd-000385-3V@gemulon.postgresql.org>
  References: <E1g8TEd-000385-3V@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