diff options
author | Noah Misch <noah@leadboat.com> | 2015-02-25 23:48:28 -0500 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2015-02-25 23:48:28 -0500 |
commit | f5ef00aed4c39645716cabb2e4cf1ef3598fcde7 (patch) | |
tree | 508d8bfd472cb06772338395101758745a3a5993 /src/backend/utils/adt/jsonb.c | |
parent | 62a4a1af5d1d84f0023bc3816c204191b0f4f49f (diff) | |
download | postgresql-f5ef00aed4c39645716cabb2e4cf1ef3598fcde7.tar.gz postgresql-f5ef00aed4c39645716cabb2e4cf1ef3598fcde7.zip |
Free SQLSTATE and SQLERRM no earlier than other PL/pgSQL variables.
"RETURN SQLERRM" prompted plpgsql_exec_function() to read from freed
memory. Back-patch to 9.0 (all supported versions). Little code ran
between the premature free and the read, so non-assert builds are
unlikely to witness user-visible consequences.
Diffstat (limited to 'src/backend/utils/adt/jsonb.c')
0 files changed, 0 insertions, 0 deletions