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

Re: Perl 7: Fix string leaks?

Thread Previous | Thread Next
Dan Book
March 30, 2021 22:31
Re: Perl 7: Fix string leaks?
Message ID:
On Tue, Mar 30, 2021 at 4:48 PM Salvador Fandiño <> wrote:

> >> No solution is trivial or evident, and would have required
> investigation from the developer. So, I would expect most people did find
> about 2 and used it.
> >
> > A lot of XS modules use SvPV without checking SvUTF8. Alas.
> Yes, and almost all of them are broken!

Technically yes, but practically is a different matter. Such modules (1)
accidentally work correctly sometimes, and (2) work correctly always on
ascii-only input. Fixing this wholesale, as in most instances of this bug,
won't affect (2) but it will cause (1) to go from "sometimes broken" to
"always broken".


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