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

Re: [perl #127956] null pointer dereference in Perl_sv_setpvn atsv.c:4896

Thread Previous | Thread Next
From:
Zefram
Date:
April 22, 2016 15:35
Subject:
Re: [perl #127956] null pointer dereference in Perl_sv_setpvn atsv.c:4896
Message ID:
20160422153534.GG8328@fysh.org
Brian Carpenter wrote:
>perl -e '$0=$.^=*.=$0=0'

This reduces to

        perl -e '$z ^= *z=0'

which looks almost exactly like [perl #127934].  That one used *= and
asserted, whereas this one uses ^= and segvs.  They're probably the
same bug underneath.  |= and .= also segv: the pattern seems to be that
numeric operations assert and string operations segv on handling the
string buffer.

-zefram

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