]> granicus.if.org Git - postgresql/commit
Fix uninitialized memory reference.
authorRobert Haas <rhaas@postgresql.org>
Fri, 1 Dec 2017 15:01:50 +0000 (10:01 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 1 Dec 2017 15:05:00 +0000 (10:05 -0500)
commit59c8078744b5febf549c8b53171242cf667b87a1
tree4f799e72d4f91958e60323cbe9122c624af89a2d
parent86ab28fbd19a6a0742a7f66e69a595b61eb13d00
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
src/backend/executor/execPartition.c
src/test/regress/expected/insert.out
src/test/regress/sql/insert.sql