pgsql: Fix uninitialized memory reference. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Fix uninitialized memory reference.
Date
Msg-id E1eKmuI-0005tB-J2@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Check channel binding flag at end of SCRAM exchange
Next
From: Robert Haas
Date:
Subject: pgsql: Try to exclude partitioned tables in toto.