pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Check for BuildIndexValueDescription returning NULL in gist_page
Date: Mon, 18 Jan 2021 12:57:25 +0000
Message-ID: <E1l1U61-0000TO-UH@gemulon.postgresql.org> (raw)

Check for BuildIndexValueDescription returning NULL in gist_page_items

Per Coverity. BuildIndexValueDescription() cannot actually return NULL in
this instance, because it only returns NULL if the user doesn't have the
required privileges, and this function can only be used by superuser. But
better safe than sorry.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5d1e5c8b758770186b005a1c3888b05e37af79c5

Modified Files
--------------
contrib/pageinspect/gistfuncs.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)



Message-ID: <E1l1U61-0000TO-UH@gemulon.postgresql.org>
Permalink:  ../E1l1U61-0000TO-UH@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1l1U61-0000TO-UH@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: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Check for BuildIndexValueDescription returning NULL in gist_page
  In-Reply-To: <E1l1U61-0000TO-UH@gemulon.postgresql.org>
  References: <E1l1U61-0000TO-UH@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