[perl #40427] Segfault in pack
dgay@acm.org [Thu, 28 Sep 2006 17:30:37 +0000 (10:30 -0700)]
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;
        }