develooper Front page | perl.perl5.porters | Postings from August 2017

Re: Shouldn't we be fixing our function interfaces to removeinappropriate I32 U32?

Thread Previous | Thread Next
From:
Father Chrysostomos
Date:
August 11, 2017 01:02
Subject:
Re: Shouldn't we be fixing our function interfaces to removeinappropriate I32 U32?
Message ID:
20170811010211.22634.qmail@lists-nntp.develooper.com
Karl Williamson wrote:
> I'm thinking we should go through embed.fnc looking for these parameter
> types that are specifying lengths, and change them, even if these are in
> the public API.  Aren't these are segfaults and DOS attacks waiting to
> happen?
> 
> Zefram said we did something similar a while back with array indices.
> 
> I'm unsure of the implications for modules that can work on earlier perls.

The main problem to watch out for is I32 pointers.  I32* parameters cannot be changed without really breaking things.

Also, be aware that not every use of I32 is bad.

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