pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Fix uninitialized memory reference.
Date: Fri, 01 Dec 2017 15:07:14 +0000
Message-ID: <E1eKmuI-0005tB-J2@gemulon.postgresql.org> (raw)

Fix uninitialized memory reference.

Without this, when partdesc->nparts == 0, we end up calling
ExecBuildSlotPartitionKeyDescription without initializing values
and isnull.

Reported by Coverity via Michael Paquier.  Patch by Michael Paquier,
reviewed and revised by Amit Langote.

Discussion: http://postgr.es/m/CAB7nPqQ3mwkdMoPY-ocgTpPnjd8TKOadMxdTtMLvEzF8480Zfg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/59c8078744b5febf549c8b53171242cf667b87a1

Modified Files
--------------
src/backend/executor/execPartition.c | 18 +++++++++++-------
src/test/regress/expected/insert.out |  4 ++++
src/test/regress/sql/insert.sql      |  4 ++++
3 files changed, 19 insertions(+), 7 deletions(-)



Message-ID: <E1eKmuI-0005tB-J2@gemulon.postgresql.org>
Permalink:  ../E1eKmuI-0005tB-J2@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eKmuI-0005tB-J2@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: rhaas@postgresql.org
  Subject: Re: pgsql: Fix uninitialized memory reference.
  In-Reply-To: <E1eKmuI-0005tB-J2@gemulon.postgresql.org>
  References: <E1eKmuI-0005tB-J2@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