New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
null ptr deref, segfault in Perl_pp_subtract pp.c:1894 #15578
Comments
From @geeknikPerl v5.25.4-27-gf16e7fa ./perl -e '@0=()-splice@a,$#a=0or@0' ==35420==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000000c (pc 0x0000009bcd41 bp 0x0c32000012d2 sp 0x7ffe63e7dbd0 T0) AddressSanitizer can not provide additional info. Program received signal SIGSEGV, Segmentation fault. ==17125== Invalid read of size 4 |
From @dcollinsn./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);' Looks like a good starting point. -- |
The RT System itself - Status changed from 'new' to 'open' |
From @cpansproutOn Thu Sep 01 11:56:00 2016, dcollinsn@gmail.com wrote:
Not zero-length, but one with a single null entry.
I think splice needs to do the same null checks that other array functions do, and push &PL_sv_undef for null. -- Father Chrysostomos |
From @cpansproutOn Thu Sep 01 21:30:30 2016, sprout wrote:
Now fixed in 92b69f6. -- Father Chrysostomos |
@cpansprout - Status changed from 'open' to 'pending release' |
From @khwilliamsonThank you for filing this report. You have helped make Perl better. With the release today of Perl 5.26.0, this and 210 other issues have been Perl 5.26.0 may be downloaded via: If you find that the problem persists, feel free to reopen this ticket. |
@khwilliamson - Status changed from 'pending release' to 'resolved' |
Migrated from rt.perl.org#129166 (status was 'resolved')
Searchable as RT129166$
The text was updated successfully, but these errors were encountered: