develooper Front page | perl.perl5.porters | Postings from April 2021

Re: Perl 7: Fix string leaks?

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
April 1, 2021 16:03
Subject:
Re: Perl 7: Fix string leaks?
Message ID:
CAHhgV8jCteDk1s_Na04k-DnoSqxorEEbQHhexB94SHWcPmFH=A@mail.gmail.com
On Wed, Mar 31, 2021 at 7:04 PM Salvador Fandiño <sfandino@gmail.com> wrote:
> >> Anyway, if you want a more conservative approach you can also make a version of SvPV (say SvPV_bad) that warns on first use and change the default typemaps to use it.
> >
> > I would love to take an approach like this, but I think it would create too many warnings in code that currently “happens” to work consistently.
>
> You can make it warn just the first time it happens globally, of just
> the first time if happens at some call point.

That would just create a lot of warnings for people who can't do much
about it as the vast majority of users can't do XS.

Leon

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About