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:49:02 -0500 |
commit | 034d05dbdf6340247b58c80640b2cdfc772f4ee1 (patch) | |
tree | 5889b30ce901c886d7679afdb535e5a616dfbde0 /src/backend/commands/sequence.c | |
parent | f7b41902a6737c682e6311455976f1205014cb8b (diff) | |
download | postgresql-034d05dbdf6340247b58c80640b2cdfc772f4ee1.tar.gz postgresql-034d05dbdf6340247b58c80640b2cdfc772f4ee1.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/commands/sequence.c')
0 files changed, 0 insertions, 0 deletions