]> granicus.if.org Git - postgresql/commit
Work around perl bug in SvPVutf8().
authorAndrew Dunstan <andrew@dunslane.net>
Thu, 5 Jan 2012 17:03:44 +0000 (12:03 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Thu, 5 Jan 2012 17:03:44 +0000 (12:03 -0500)
commitd496384d6771c276a0253758418e7933b6f31167
tree351ced54fa55674edbf72d0965d2cf0b959d5e28
parent658ee0108637683216fb093b9f2c7e23bfd150c5
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.
src/pl/plperl/plperl_helpers.h