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

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Use SvROK(sv) rather than directly checking SvTYPE(sv) == SVt_RV
Дата
Msg-id 20100309223459.022B57541D0@cvs.postgresql.org
обсуждение исходный текст
Список 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_3_STABLE

Modified Files:
--------------
    pgsql/src/pl/plperl:
        plperl.c (r1.136.2.7 -> r1.136.2.8)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plperl/plperl.c?r1=1.136.2.7&r2=1.136.2.8)

В списке pgsql-committers по дате отправления:

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Use SvROK(sv) rather than directly checking SvTYPE(sv) == SVt_RV
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Use SvROK(sv) rather than directly checking SvTYPE(sv) == SVt_RV