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

Re: changes 19033-19034

Jarkko Hietaniemi
March 20, 2003 12:56
Re: changes 19033-19034
Message ID:
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

Jarkko Hietaniemi <> "There is this special
biologist word we use for 'stable'.  It is 'dead'." -- Jack Cohen Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About