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

Re: changes 19033-19034

From:
Jarkko Hietaniemi
Date:
March 20, 2003 12:56
Subject:
Re: changes 19033-19034
Message ID:
20030320204702.GD17800@vipunen.hut.fi
On Wed, Mar 19, 2003 at 09:05:08PM -0800, Gurusamy Sarathy wrote:
> These two are relevant to the mainline and maint-5.8, so please
> integrate.  I don't think there will be any merge conflicts.
> 
> You may also want to vet all uses of SvCUR_set() to see if
> there is the moral equivalent of C<*SvEND(sv) = '\0'> near it.
> I did a quick check, and a few places in reg*.c and toke.c seem
> to not do that.  This will not be an issue if the SV never leaves
> the perl universe, but will certainly be a problem wherever
> something assumes SvPV() returns a NUL-terminated string (as
> my_stat() did).
> 
> Adding the NUL is not always possible without making a copy or
> changing the semantics of the code in subtle ways, so it may
> not be possible to mindlessly "fix" it everywhere.

Maybe this message should be copied to p5p, too, it may stick
into someone's little gray cells.

> Sarathy
> gsar@ActiveState.com

-- 
Jarkko Hietaniemi <jhi@iki.fi> http://www.iki.fi/jhi/ "There is this special
biologist word we use for 'stable'.  It is 'dead'." -- Jack Cohen



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