pgsql: PL/Python: Fix type mixup

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: PL/Python: Fix type mixup
Date: 2013-06-14 01:49:04
Message-ID: E1UnJ8S-0006AB-Du@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

PL/Python: Fix type mixup

Memory was allocated based on the sizeof a type that was not the type of
the pointer that the result was being assigned to. The types happen to
be of the same size, but it's still wrong.

Branch
------
master

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

Modified Files
--------------
src/pl/plpython/plpy_typeio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2013-06-14 02:36:22 pgsql: Refactor checksumming code to make it easier to use externally.
Previous Message Tom Lane 2013-06-13 17:13:15 pgsql: Only install a portal's ResourceOwner if it actually has one.