aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2024-04-01 15:15:03 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2024-04-01 15:15:03 -0400
commit14e4e8f8c66b2d4316ecb1276e688d67c25659c2 (patch)
treead20c2c3182ee1924b4388e3001a6051914a95a5 /contrib/postgres_fdw/postgres_fdw.c
parentca4c60e05f81c57b4d72da867173fc524c76aa71 (diff)
downloadpostgresql-14e4e8f8c66b2d4316ecb1276e688d67c25659c2.tar.gz
postgresql-14e4e8f8c66b2d4316ecb1276e688d67c25659c2.zip
Avoid possible longjmp-induced logic error in PLy_trigger_build_args.
The "pltargs" variable wasn't marked volatile, which makes it unsafe to change its value within the PG_TRY block. It looks like the worst outcome would be to fail to release a refcount on Py_None during an (improbable) error exit, which would likely go unnoticed in the field. Still, it's a bug. A one-liner fix could be to mark pltargs volatile, but on the whole it seems cleaner to arrange things so that we don't change its value within PG_TRY. Per report from Xing Guo. This has been there for quite awhile, so back-patch to all supported branches. Discussion: https://postgr.es/m/CACpMh+DLrk=fDv07MNpBT4J413fDAm+gmMXgi8cjPONE+jvzuw@mail.gmail.com
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions