]> 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:34:38 +0000 (22:34 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 9 Mar 2010 22:34:38 +0000 (22:34 +0000)
commitdac7a37dd3c66ba8cf120d997ea1a1c9d6a0d99d
tree69b807c5a04d8751917ca4436ddd9bc965b21c26
parentff5ab91299ab2d9054d7571b2f7d931590288bd5
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