]> granicus.if.org Git - postgresql/commit
Use SvROK(sv) rather than directly checking SvTYPE(sv) == SVt_RV in plperl.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 9 Mar 2010 22:35:25 +0000 (22:35 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 9 Mar 2010 22:35:25 +0000 (22:35 +0000)
commit02db7827f3d16507bd481f7f190a608c2413a68d
tree6e6ff1c8c6140048d8a7a054842756a14eceb6d3
parent0303f0415de638bd090792c9f788117a47a1e43f
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.
src/pl/plperl/plperl.c