aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/async.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2021-02-27 18:09:15 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2021-02-27 18:09:15 -0300
commit2688852a49ea52e5663c09f91cdcf43697e10814 (patch)
treecb3cf7c52d23023e34dff749d101586fc29d1984 /src/backend/commands/async.c
parent57449318307a3eaa02d129869293e887c5b48ab0 (diff)
downloadpostgresql-2688852a49ea52e5663c09f91cdcf43697e10814.tar.gz
postgresql-2688852a49ea52e5663c09f91cdcf43697e10814.zip
Fix use-after-free bug with AfterTriggersTableData.storeslot
AfterTriggerSaveEvent() wrongly allocates the slot in execution-span memory context, whereas the correct thing is to allocate it in a transaction-span context, because that's where the enclosing AfterTriggersTableData instance belongs into. Backpatch to 12 (the test back to 11, where it works well with no code changes, and it's good to have to confirm that the case was previously well supported); this bug seems introduced by commit ff11e7f4b9ae. Reported-by: Bertrand Drouvot <bdrouvot@amazon.com> Author: Amit Langote <amitlangote09@gmail.com> Discussion: https://postgr.es/m/39a71864-b120-5a5c-8cc5-c632b6f16761@amazon.com
Diffstat (limited to 'src/backend/commands/async.c')
0 files changed, 0 insertions, 0 deletions