Skip site navigation (1) Skip section navigation (2)

pgsql: Fix plpgsql to avoid reference to already-freed memory when

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix plpgsql to avoid reference to already-freed memory when
Date: 2007-04-19 16:33:24
Message-ID: 20070419163324.316249FB3E8@postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Fix plpgsql to avoid reference to already-freed memory when returning a
pass-by-reference data type and the RETURN statement is within an EXCEPTION
block.  Bug introduced by my fix of 2007-01-28 to use per-subtransaction
ExprContexts/EStates; since that wasn't back-patched into older branches,
only 8.2 and HEAD are affected.  Per report from Gary Winslow.

Modified Files:
--------------
    pgsql/src/pl/plpgsql/src:
        pl_exec.c (r1.194 -> r1.195)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpgsql/src/pl_exec.c.diff?r1=1.194&r2=1.195)

pgsql-committers by date

Next:From: Tom LaneDate: 2007-04-19 16:33:32
Subject: pgsql: Fix plpgsql to avoid reference to already-freed memory when
Previous:From: Alvaro HerreraDate: 2007-04-19 16:26:44
Subject: pgsql: Silence compiler warnings, per Bruce.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group