develooper Front page | perl.perl5.porters | Postings from January 2012

[perl #108994] certain objects crash SvPVutf8()

Thread Previous | Thread Next
bulk 88 via RT
January 25, 2012 09:28
[perl #108994] certain objects crash SvPVutf8()
Message ID:
On Tue Jan 24 21:35:37 2012, sprout wrote:
> Even if one works around the errors/crashes, what it’s doing is just
> wrong, so I would suggest this (which SvPVutf8 itself *should* be doing):
> if ((SvTHINKFIRST(sv) && !SvIsCOW(sv)) || isGV_with_GP(sv))
>     sv = sv_mortalcopy(sv);
> That will prevent SvPVutf8 from making any user-visible changes to sv.

"Using Perl to Dispose of Temporaries" in perlcall, wouldn't your
proposal leak?

via perlbug:  queue: perl5 status: open

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About