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

pgsql: plpgsql's exec_assign_value() freed the old value of a variable

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: plpgsql's exec_assign_value() freed the old value of a variable
Date: 2005-06-20 20:45:06
Message-ID: 20050620204506.9D70A528B1@svr1.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
plpgsql's exec_assign_value() freed the old value of a variable before
copying/converting the new value, which meant that it failed badly on
"var := var" if var is of pass-by-reference type.  Fix this and a similar
hazard in exec_move_row(); not sure that the latter can manifest before
8.0, but patch it all the way back anyway.  Per report from Dave Chapeskie.

Tags:
----
REL7_3_STABLE

Modified Files:
--------------
    pgsql/src/pl/plpgsql/src:
        pl_exec.c (r1.65.2.3 -> r1.65.2.4)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpgsql/src/pl_exec.c.diff?r1=1.65.2.3&r2=1.65.2.4)

pgsql-committers by date

Next:From: Tom LaneDate: 2005-06-20 20:45:13
Subject: pgsql: plpgsql's exec_assign_value() freed the old value of a variable
Previous:From: Tom LaneDate: 2005-06-20 20:44:58
Subject: pgsql: plpgsql's exec_assign_value() freed the old value of a variable

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