pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Free SQLSTATE and SQLERRM no earlier than other PL/pgSQL variabl
6+ messages / 1 participants
[nested] [flat]

* pgsql: Free SQLSTATE and SQLERRM no earlier than other PL/pgSQL variabl
@ 2015-02-26 04:56  Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Noah Misch @ 2015-02-26 04:56 UTC (permalink / raw)
  To: pgsql-committers

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.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/034d05dbdf6340247b58c80640b2cdfc772f4ee1

Modified Files
--------------
src/pl/plpgsql/src/pl_exec.c          |   12 +++---------
src/test/regress/expected/plpgsql.out |   12 ++++++++++++
src/test/regress/sql/plpgsql.sql      |   10 +++++++++-
3 files changed, 24 insertions(+), 10 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Free SQLSTATE and SQLERRM no earlier than other PL/pgSQL variabl
@ 2015-02-26 04:56  Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Noah Misch @ 2015-02-26 04:56 UTC (permalink / raw)
  To: pgsql-committers

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.

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/4651e37cb1c9cc34643921bdc8b783d1c81b488f

Modified Files
--------------
src/pl/plpgsql/src/pl_exec.c          |   12 +++---------
src/test/regress/expected/plpgsql.out |   12 ++++++++++++
src/test/regress/sql/plpgsql.sql      |   10 +++++++++-
3 files changed, 24 insertions(+), 10 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Free SQLSTATE and SQLERRM no earlier than other PL/pgSQL variabl
@ 2015-02-26 04:56  Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Noah Misch @ 2015-02-26 04:56 UTC (permalink / raw)
  To: pgsql-committers

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.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/d7083cc546bba50fe1adea5a05772f857cbff96b

Modified Files
--------------
src/pl/plpgsql/src/pl_exec.c          |   12 +++---------
src/test/regress/expected/plpgsql.out |   12 ++++++++++++
src/test/regress/sql/plpgsql.sql      |   10 +++++++++-
3 files changed, 24 insertions(+), 10 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Free SQLSTATE and SQLERRM no earlier than other PL/pgSQL variabl
@ 2015-02-26 04:56  Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Noah Misch @ 2015-02-26 04:56 UTC (permalink / raw)
  To: pgsql-committers

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.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/40a9a16760ab803694583d7f3549a7ad7bc11d75

Modified Files
--------------
src/pl/plpgsql/src/pl_exec.c          |   12 +++---------
src/test/regress/expected/plpgsql.out |   12 ++++++++++++
src/test/regress/sql/plpgsql.sql      |   10 +++++++++-
3 files changed, 24 insertions(+), 10 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Free SQLSTATE and SQLERRM no earlier than other PL/pgSQL variabl
@ 2015-02-26 04:56  Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Noah Misch @ 2015-02-26 04:56 UTC (permalink / raw)
  To: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f5ef00aed4c39645716cabb2e4cf1ef3598fcde7

Modified Files
--------------
src/pl/plpgsql/src/pl_exec.c          |   12 +++---------
src/test/regress/expected/plpgsql.out |   12 ++++++++++++
src/test/regress/sql/plpgsql.sql      |   10 +++++++++-
3 files changed, 24 insertions(+), 10 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Free SQLSTATE and SQLERRM no earlier than other PL/pgSQL variabl
@ 2015-02-26 04:56  Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Noah Misch @ 2015-02-26 04:56 UTC (permalink / raw)
  To: pgsql-committers

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.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/38930e473a799c1ba2b33b2964dd2b9f8862a268

Modified Files
--------------
src/pl/plpgsql/src/pl_exec.c          |   12 +++---------
src/test/regress/expected/plpgsql.out |   12 ++++++++++++
src/test/regress/sql/plpgsql.sql      |   10 +++++++++-
3 files changed, 24 insertions(+), 10 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2015-02-26 04:56 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-02-26 04:56 pgsql: Free SQLSTATE and SQLERRM no earlier than other PL/pgSQL variabl Noah Misch <noah@leadboat.com>
2015-02-26 04:56 pgsql: Free SQLSTATE and SQLERRM no earlier than other PL/pgSQL variabl Noah Misch <noah@leadboat.com>
2015-02-26 04:56 pgsql: Free SQLSTATE and SQLERRM no earlier than other PL/pgSQL variabl Noah Misch <noah@leadboat.com>
2015-02-26 04:56 pgsql: Free SQLSTATE and SQLERRM no earlier than other PL/pgSQL variabl Noah Misch <noah@leadboat.com>
2015-02-26 04:56 pgsql: Free SQLSTATE and SQLERRM no earlier than other PL/pgSQL variabl Noah Misch <noah@leadboat.com>
2015-02-26 04:56 pgsql: Free SQLSTATE and SQLERRM no earlier than other PL/pgSQL variabl Noah Misch <noah@leadboat.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox