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

Re: Perl 7: Fix string leaks?

Thread Previous | Thread Next
Leon Timmermans
April 1, 2021 16:03
Re: Perl 7: Fix string leaks?
Message ID:
On Wed, Mar 31, 2021 at 7:04 PM Salvador Fandiño <> 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.


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