This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: [ID 20011209.005] perl "u2" eats RAM
authorWolfgang Laun <Wolfgang.Laun@alcatel.at>
Mon, 10 Dec 2001 08:45:20 +0000 (09:45 +0100)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 10 Dec 2001 13:21:06 +0000 (13:21 +0000)
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;