Work around perl bug in SvPVutf8().

Andrew Dunstan <andrew@dunslane.net>

Commit: d496384d6771c276a0253758418e7933b6f31167
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2012-01-05T17:03:44Z
Releases: 9.1.3
Work around perl bug in SvPVutf8().

Certain things like typeglobs or readonly things like $^V cause
perl's SvPVutf8() to die nastily and crash the backend. To avoid
that bug we make a copy of the object, which will subsequently be
garbage collected.

Back patched to 9.1 where we first started using SvPVutf8().

Per -hackers discussion. Original problem reported by David Wheeler.

Files

PathChange+/−
src/pl/plperl/plperl_helpers.h modified +7 −1