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.
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.

xinzweb/gpdb,adam8157/gpdb,pavanvd/postgres-xl,ashwinstar/gpdb,snaga/postgres-xl,zeroae/postgres-xl,postmind-net/postgres-xl,pavanvd/postgres-xl,xinzweb/gpdb,tpostgres-projects/tPostgres,50wu/gpdb,greenplum-db/gpdb,adam8157/gpdb,xinzweb/gpdb,kmjungersen/PostgresXL,xinzweb/gpdb,greenplum-db/gpdb,lisakowen/gpdb,ovr/postgres-xl,Postgres-XL/Postgres-XL,50wu/gpdb,lisakowen/gpdb,postmind-net/postgres-xl,yazun/postgres-xl,50wu/gpdb,jmcatamney/gpdb,techdragon/Postgres-XL,50wu/gpdb,50wu/gpdb,oberstet/postgres-xl,ashwinstar/gpdb,postmind-net/postgres-xl,zeroae/postgres-xl,oberstet/postgres-xl,Postgres-XL/Postgres-XL,kmjungersen/PostgresXL,ashwinstar/gpdb,zeroae/postgres-xl,pavanvd/postgres-xl,pavanvd/postgres-xl,tpostgres-projects/tPostgres,oberstet/postgres-xl,kmjungersen/PostgresXL,ovr/postgres-xl,adam8157/gpdb,arcivanov/postgres-xl,arcivanov/postgres-xl,zeroae/postgres-xl,greenplum-db/gpdb,ashwinstar/gpdb,techdragon/Postgres-XL,Postgres-XL/Postgres-XL,snaga/postgres-xl,greenplum-db/gpdb,xinzweb/gpdb,xinzweb/gpdb,50wu/gpdb,jmcatamney/gpdb,lisakowen/gpdb,greenplum-db/gpdb,snaga/postgres-xl,kmjungersen/PostgresXL,yazun/postgres-xl,arcivanov/postgres-xl,snaga/postgres-xl,zeroae/postgres-xl,ashwinstar/gpdb,ashwinstar/gpdb,oberstet/postgres-xl,lisakowen/gpdb,adam8157/gpdb,pavanvd/postgres-xl,ovr/postgres-xl,jmcatamney/gpdb,postmind-net/postgres-xl,ovr/postgres-xl,adam8157/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,adam8157/gpdb,ashwinstar/gpdb,techdragon/Postgres-XL,yazun/postgres-xl,techdragon/Postgres-XL,arcivanov/postgres-xl,yazun/postgres-xl,arcivanov/postgres-xl,50wu/gpdb,adam8157/gpdb,Postgres-XL/Postgres-XL,ashwinstar/gpdb,greenplum-db/gpdb,tpostgres-projects/tPostgres,jmcatamney/gpdb,lisakowen/gpdb,Postgres-XL/Postgres-XL,lisakowen/gpdb,yazun/postgres-xl,jmcatamney/gpdb,jmcatamney/gpdb,postmind-net/postgres-xl,tpostgres-projects/tPostgres,kmjungersen/PostgresXL,lisakowen/gpdb,xinzweb/gpdb,oberstet/postgres-xl,arcivanov/postgres-xl,lisakowen/gpdb,adam8157/gpdb,greenplum-db/gpdb,snaga/postgres-xl,techdragon/Postgres-XL,jmcatamney/gpdb,xinzweb/gpdb,50wu/gpdb,ovr/postgres-xl,tpostgres-projects/tPostgres