forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit93f726c
committed
Fix use-after-free bug with event triggers and ALTER TABLE.
EventTriggerAlterTableEnd neglected to make sure that it built itsoutput list in the right context. In simple cases this was maskedbecause the function is called in PortalContext which will besufficiently long-lived anyway; but that doesn't make it not a bug.Commitced138e fixed this in HEAD and v13, but mistakenly chosenot to back-patch further. Back-patch the same code change allthe way (I didn't bother with the test case though, as it wouldprove nothing in pre-v13 branches).Per report from Arseny Sher.Original fix by Jehan-Guillaume de Rorthais.Discussion:https://postgr.es/m/877drcyprb.fsf@ars-thinkpadDiscussion:https://postgr.es/m/20200902193715.6e0269d4@firost1 parent197014b commit93f726c
1 file changed
+6
-0
lines changedLines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1807 | 1807 |
| |
1808 | 1808 |
| |
1809 | 1809 |
| |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
1810 | 1814 |
| |
1811 | 1815 |
| |
1812 | 1816 |
| |
| 1817 | + | |
| 1818 | + | |
1813 | 1819 |
| |
1814 | 1820 |
| |
1815 | 1821 |
| |
|
0 commit comments
Comments
(0)