develooper Front page | perl.perl5.porters | Postings from February 2015

[perl #123846] SEGV in \stat stat

Thread Previous
Hugo van der Sanden
February 16, 2015 11:11
[perl #123846] SEGV in \stat stat
Message ID:
# New Ticket Created by  Hugo van der Sanden 
# Please include the string:  [perl #123846]
# in the subject line of all future correspondence about this issue. 
# <URL: >

AFL (< finds this:

% ./miniperl -e '\stat stat @x'
Segmentation fault (core dumped)
% ./miniperl -e '\stat \stat @x'
Segmentation fault (core dumped)

The SEGV occurs due to stack underflow at the POPs in the rather dense first couple of lines of pp_stat:
    if (PL_op->op_flags & OPf_REF ? (gv = cGVOP_gv, 1)
                                  : !!(sv=POPs, gv = MAYBE_DEREF_GV(sv))) {


Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About