From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Prevent segfault in expand_tuple with no missing values
Date: Fri, 13 Apr 2018 20:49:45 +0000
Message-ID: <E1f75dh-0001Dt-0j@gemulon.postgresql.org> (raw)
Prevent segfault in expand_tuple with no missing values
Commit 16828d5c forgot to check that it had a set of missing values
before trying to retrieve a value from it.
An additional query to add coverage for this code is added to the
regression test.
Per bug report from Andreas Seltenreich.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/7c44c46deb495a2f3861f402d7f2109263e3d50a
Modified Files
--------------
src/backend/access/common/heaptuple.c | 2 +-
src/test/regress/expected/fast_default.out | 35 ++++++++++++++++++++++++++++++
src/test/regress/sql/fast_default.sql | 14 ++++++++++++
3 files changed, 50 insertions(+), 1 deletion(-)
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: andrew@dunslane.net
Subject: Re: pgsql: Prevent segfault in expand_tuple with no missing values
In-Reply-To: <E1f75dh-0001Dt-0j@gemulon.postgresql.org>
References: <E1f75dh-0001Dt-0j@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