Ensure that PLPGSQL_DTYPE_ROW variables have valid refname fields.
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/pl/plpgsql/src/pl_comp.c | modified | +2 −0 |
| src/pl/plpgsql/src/pl_exec.c | modified | +1 −0 |
| src/pl/plpgsql/src/pl_gram.y | modified | +3 −0 |
| src/pl/plpgsql/src/plpgsql.h | modified | +6 −1 |
Discussion
- snprintf assert is broken by plpgsql #option dump 4 messages · 2018-10-04 → 2018-10-05