diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2016-10-17 12:13:16 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2016-10-17 12:13:16 +0300 |
commit | d8589946ddd5c43e1ebd01c5e92d0e177cbfc198 (patch) | |
tree | 8d55a3ea631630089a5fd29051303006ad3b19c3 /src/backend/access/gist/gistxlog.c | |
parent | 9e083fd4683294f41544e6d0d72f6e258ff3a77c (diff) | |
download | postgresql-d8589946ddd5c43e1ebd01c5e92d0e177cbfc198.tar.gz postgresql-d8589946ddd5c43e1ebd01c5e92d0e177cbfc198.zip |
Fix use-after-free around DISTINCT transition function calls.
Have tuplesort_gettupleslot() copy the contents of its current table slot
as needed. This is based on an approach taken by tuplestore_gettupleslot().
In the future, tuplesort_gettupleslot() may also be taught to avoid copying
the tuple where caller can determine that that is safe (the
tuplestore_gettupleslot() interface already offers this option to callers).
Patch by Peter Geoghegan. Fixes bug #14344, reported by Regina Obe.
Report: <20160929035538.20224.39628@wrigleys.postgresql.org>
Backpatch-through: 9.6
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions