forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita5f0bd7
committed
Fix use-after-free around DISTINCT transition function calls.
Have tuplesort_gettupleslot() copy the contents of its current table slotas needed. This is based on an approach taken by tuplestore_gettupleslot().In the future, tuplesort_gettupleslot() may also be taught to avoid copyingthe tuple where caller can determine that that is safe (thetuplestore_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.61 parentdb4b54f commita5f0bd7
1 file changed
+9
-0
lines changedLines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2045 | 2045 |
| |
2046 | 2046 |
| |
2047 | 2047 |
| |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
2048 | 2052 |
| |
2049 | 2053 |
| |
2050 | 2054 |
| |
| |||
2065 | 2069 |
| |
2066 | 2070 |
| |
2067 | 2071 |
| |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
2068 | 2077 |
| |
2069 | 2078 |
| |
2070 | 2079 |
| |
|
0 commit comments
Comments
(0)