Skip site navigation (1) Skip section navigation (2)

pgsql: Work around perl bug in SvPVutf8().

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Work around perl bug in SvPVutf8().
Date: 2012-01-05 17:05:39
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committerspgsql-hackers
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.



Modified Files
src/pl/plperl/plperl_helpers.h |    8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)


pgsql-hackers by date

Next:From: Andrew DunstanDate: 2012-01-05 17:08:09
Subject: Re: PL/Perl Does not Like vstrings
Previous:From: Kevin GrittnerDate: 2012-01-05 16:41:59
Subject: Re: Client Messages

pgsql-committers by date

Next:From: Peter EisentrautDate: 2012-01-05 17:52:23
Subject: pgsql: Improve ALTER DOMAIN / DROP CONSTRAINT with nonexistentconstrai
Previous:From: Andrew DunstanDate: 2012-01-05 17:05:24
Subject: pgsql: Work around perl bug in SvPVutf8().

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group