]> granicus.if.org Git - postgresql/commit
Ensure that PLPGSQL_DTYPE_ROW variables have valid refname fields.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 5 Oct 2018 16:45:37 +0000 (12:45 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 5 Oct 2018 16:45:37 +0000 (12:45 -0400)
commit6e526b78706a99dc52182387d0e6f84d05bd597a
treee0e5e27ecd81eb64ee0e6a79e90ae5c48a32dad3
parent40159d91cc546b2585efd3eb0b3db05cd6f2be93
Ensure that PLPGSQL_DTYPE_ROW variables have valid refname fields.

Without this, the syntax-tree-dumping functions in pl_funcs.c crash,
and there are other places that might be at risk too.  Per report
from Pavel Stehule.

Looks like I broke this in commit f9263006d, so back-patch to v11.

Discussion: https://postgr.es/m/CAFj8pRA+3f5n4642q2g8BXCKjbTd7yU9JMYAgDyHgozk6cQ-VA@mail.gmail.com
src/pl/plpgsql/src/pl_comp.c
src/pl/plpgsql/src/pl_exec.c
src/pl/plpgsql/src/pl_gram.y
src/pl/plpgsql/src/plpgsql.h