Use SvROK(sv) rather than directly checking SvTYPE(sv) == SVt_RV in plperl.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 62513c3e559f5bd657b4670df2bcdf28fa4d7e9c
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-03-09T22:35:07Z
Releases: 8.2.16
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.

Files

PathChange+/−
src/pl/plperl/plperl.c modified +5 −5