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 S_rv2gv (pp.c:296) #15607
Comments
From @geeknikTriggered in v5.25.5 (v5.25.4-130-g7aa7bbc) with AFL + ASAN + libdislocator. ./perl -e 'select$0=%::=*0==0'
|
From zefram@fysh.orgThe test case no longer segvs for me, since v5.25.6-78-g8b0c337. -zefram |
The RT System itself - Status changed from 'new' to 'open' |
From @iabynOn Fri, Jan 27, 2017 at 06:52:50AM +0000, Zefram wrote:
The code can be reduced to: $x = "foo"; prior to that commit, pp_assign when assigning to a hash with an odd That commit fixed the bug of storing PL_sv_undef; I'm not sure whether Basically the gv_fetchsv_nomg() call in S_rv2gv() returns NULL, which Perl_gv_fetchpvn_flags() has: gvp = (GV**)hv_fetch(stash,name,is_utf8 ? -(I32)len : (I32)len,add); which is where the test for the magic value PL_sv_undef appears. -- |
From @cpansproutOn Tue, 28 Mar 2017 08:33:20 -0700, davem wrote:
Then one can still make it crash: use feature "refaliasing"; $ pbpaste|./perl -Ilib
And that seems to be ancient. However, I don’t know what would be logical to do otherwise. Interestingly, other immortals are also, but differently, problematic. use feature "refaliasing"; Aliasing via reference is experimental at - line 2. Perhaps they should just behave like this instead: use feature "refaliasing"; $ pbpaste|./perl -Ilib But the error message there is not all that helpful in saying what went wrong. Maybe we could change croak_no_modify to include the op description. (How much would that break?) -- Father Chrysostomos |
Migrated from rt.perl.org#129288 (status was 'open')
Searchable as RT129288$
The text was updated successfully, but these errors were encountered: