Use SvROK(sv) rather than directly checking SvTYPE(sv) == SVt_RV in plperl.
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| src/pl/plperl/plperl.c | modified | +5 −5 |