develooper Front page | perl.perl5.porters | Postings from January 2019

[perl #133770] null pointer dereference in S_regclass()

From:
geeknik@protonmail.ch
Date:
January 19, 2019 03:23
Subject:
[perl #133770] null pointer dereference in S_regclass()
Message ID:
rt-4.0.24-5025-1547567043-872.133770-75-0@perl.org
# New Ticket Created by  geeknik@protonmail.ch 
# Please include the string:  [perl #133770]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=133770 >


While testing v5.29.6-96-g7397626020, I discovered a segfault triggered by a null pointer dereference in S_regclass(). I compiled perl5 with Clang-8.0.0 and AddressSanitizer.

echo "MAAvAG0AAABbADAwsh8AAA==" | base64 -d | tee test0084.pl | perl test0084.pl

    #0 0x77a733 in S_regclass /root/perl/regcomp.c:18577:37
    #1 0x75e1b1 in S_regatom /root/perl/regcomp.c:13191:15
    #2 0x7588be in S_regpiece /root/perl/regcomp.c:12431:11
    #3 0x748391 in S_regbranch /root/perl/regcomp.c:12349:18
    #4 0x6da1b7 in S_reg /root/perl/regcomp.c:12070:10
    #5 0x6c330f in Perl_re_op_compile /root/perl/regcomp.c:7652:9
    #6 0x5338b8 in Perl_pmruntime /root/perl/op.c:7045:6
    #7 0x69f5e2 in Perl_yyparse /root/perl/perly.y:1228:23
    #8 0x5a9a06 in S_parse_body /root/perl/perl.c:2506:9
    #9 0x5a4dd3 in perl_parse /root/perl/perl.c:1797:2
    #10 0x519b7c in main /root/perl/perlmain.c:121:10
    #11 0x7fc0785922e0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202e0)
    #12 0x43f7f9 in _start (/root/perl/perl+0x43f7f9)




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About