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

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

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