This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #40427] Segfault in pack
authordgay@acm.org <dgay@acm.org>
Thu, 28 Sep 2006 17:30:37 +0000 (10:30 -0700)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Tue, 3 Oct 2006 11:58:46 +0000 (11:58 +0000)
From: dgay@acm.org (via RT) <perlbug-followup@perl.org>
Message-ID: <rt-3.5.HEAD-31259-1159489837-428.40427-75-0@perl.org>

p4raw-id: //depot/perl@28917

pp_pack.c

index c898dce..51b42d9 100644 (file)
--- a/pp_pack.c
+++ b/pp_pack.c
@@ -2630,6 +2630,7 @@ S_pack_rec(pTHX_ SV *cat, tempsym_t* symptr, SV **beglist, SV **endlist )
                if (savsym.howlen == e_star && beglist == endlist)
                    break;              /* No way to continue */
            }
+           items = endlist - beglist;
            lookahead.flags  = symptr->flags & ~group_modifiers;
            goto no_change;
        }