From: | Robert Haas <rhaas(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Fix uninitialized memory reference. |
Date: | 2017-12-01 15:07:14 |
Message-ID: | E1eKmuI-0005tB-J2@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2017-12-01 16:08:04 | pgsql: Try to exclude partitioned tables in toto. |
Previous Message | Peter Eisentraut | 2017-12-01 14:54:30 | pgsql: Check channel binding flag at end of SCRAM exchange |