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

[perl #129166] null ptr deref, segfault in Perl_pp_subtractpp.c:1894

Thread Previous | Thread Next
From:
Dan Collins via RT
Date:
September 1, 2016 18:56
Subject:
[perl #129166] null ptr deref, segfault in Perl_pp_subtractpp.c:1894
Message ID:
rt-4.0.24-7920-1472756160-177.129166-15-0@perl.org
./perl -e '$#a=0;0-splice@a'

Also segfaults.

The root cause of #129164, #129166, and #129167 is almost certainly something in Perl_pp_splice when called on a zero-length array. 

$ ./perl -Ilib -MDevel::Peek -e '$#a=0; Dump(splice @a);'
SV = 0

Looks like a good starting point.

-- 
Respectfully,
Dan Collins

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=129166

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