aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/execParallel.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-10-27 15:37:13 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2020-10-27 15:37:13 -0400
commit66c036b4f143d129ea3c2e390ff4e3b449a83ed6 (patch)
tree78aacbc7533caec4cf2c14346af6e02b9b82e775 /src/backend/executor/execParallel.c
parent8fde8966104c3e1d4644ed9d4aa0235abe75967f (diff)
downloadpostgresql-66c036b4f143d129ea3c2e390ff4e3b449a83ed6.tar.gz
postgresql-66c036b4f143d129ea3c2e390ff4e3b449a83ed6.zip
Fix use-after-free bug with event triggers and ALTER TABLE.
EventTriggerAlterTableEnd neglected to make sure that it built its output list in the right context. In simple cases this was masked because the function is called in PortalContext which will be sufficiently long-lived anyway; but that doesn't make it not a bug. Commit ced138e8c fixed this in HEAD and v13, but mistakenly chose not to back-patch further. Back-patch the same code change all the way (I didn't bother with the test case though, as it would prove 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-thinkpad Discussion: https://postgr.es/m/20200902193715.6e0269d4@firost
Diffstat (limited to 'src/backend/executor/execParallel.c')
0 files changed, 0 insertions, 0 deletions