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

pgsql: Use SvROK(sv) rather than directly checking SvTYPE(sv) == SVt_RV

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Use SvROK(sv) rather than directly checking SvTYPE(sv) == SVt_RV
Date: 2010-03-09 22:35:25
Message-ID: 20100309223525.85C3E7541D0@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Use SvROK(sv) rather than directly checking SvTYPE(sv) == SVt_RV in plperl.
The latter is considered unwarranted chumminess with the implementation,
and can lead to crashes with recent Perl versions.

Report and fix by Tim Bunce.  Back-patch to all versions containing the
questionable coding pattern.

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/src/pl/plperl:
        plperl.c (r1.67.4.10 -> r1.67.4.11)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plperl/plperl.c?r1=1.67.4.10&r2=1.67.4.11)

pgsql-committers by date

Next:From: Tom LaneDate: 2010-03-10 01:58:11
Subject: pgsql: Preliminary release notes for releases 8.4.3, 8.3.10, 8.2.16,
Previous:From: Tom LaneDate: 2010-03-09 22:35:16
Subject: pgsql: Use SvROK(sv) rather than directly checking SvTYPE(sv) == SVt_RV

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