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:58 +0000 (22:34 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 9 Mar 2010 22:34:58 +0000 (22:34 +0000)
commitf446c28db31f61ca3ef4f1a8215a95f5206bb3ee
tree19e1ca19d8fb64a75ad6f9c4cc8d8fad10646517
parentd733417906ca2025406f862c425ede669b9a908a
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