Re: [ID 20011209.005] perl "u2" eats RAM
Wolfgang Laun [Mon, 10 Dec 2001 08:45:20 +0000 (09:45 +0100)]
Message-ID: <3C146810.60B5B7C0@alcatel.at>

p4raw-id: //depot/perl@13592

pp_pack.c

index ceb01c5..594144e 100644 (file)
--- a/pp_pack.c
+++ b/pp_pack.c
@@ -1843,7 +1843,7 @@ PP(pp_pack)
            fromstr = NEXTFROM;
            aptr = SvPV(fromstr, fromlen);
            SvGROW(cat, fromlen * 4 / 3);
-           if (len <= 1)
+           if (len <= 2)
                len = 45;
            else
                len = len / 3 * 3;