- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitd858994
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 parent9e083fd commitd858994
1 file changed
+9
-0
lines changedLines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2084 | 2084 |
| |
2085 | 2085 |
| |
2086 | 2086 |
| |
| 2087 | + | |
| 2088 | + | |
| 2089 | + | |
| 2090 | + | |
2087 | 2091 |
| |
2088 | 2092 |
| |
2089 | 2093 |
| |
| |||
2104 | 2108 |
| |
2105 | 2109 |
| |
2106 | 2110 |
| |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
2107 | 2116 |
| |
2108 | 2117 |
| |
2109 | 2118 |
| |
|
0 commit comments
Comments
(0)