pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Catch invalid typlens in a couple of places
Date: Mon, 04 Nov 2019 09:37:14 +0000
Message-ID: <E1iRYnS-0000t6-Hu@gemulon.postgresql.org> (raw)

Catch invalid typlens in a couple of places

Rearrange the logic in record_image_cmp() and record_image_eq() to
error out on unexpected typlens (either not supported there or
completely invalid due to corruption).  Barring corruption, this is
not possible today but it seems more future-proof and robust to fix
this.

Reported-by: Peter Geoghegan <pg@bowt.ie>

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0782050bc22d4d428c3cffe0d0a7ecee29d2f5fe

Modified Files
--------------
src/backend/utils/adt/rowtypes.c | 47 ++++++++++++++++++++++------------------
1 file changed, 26 insertions(+), 21 deletions(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1iRYnS-0000t6-Hu@gemulon.postgresql.org>
Permalink:  ../E1iRYnS-0000t6-Hu@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iRYnS-0000t6-Hu@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: peter@eisentraut.org
  Subject: Re: pgsql: Catch invalid typlens in a couple of places
  In-Reply-To: <E1iRYnS-0000t6-Hu@gemulon.postgresql.org>
  References: <E1iRYnS-0000t6-Hu@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