Bug#629363: perl consumes all the memory on: open FILE, '<', \*STDIN or die; <FILE>;

Niko Tyni ntyni at debian.org
Fri Oct 19 18:36:01 UTC 2012


tag 629363 patch
thanks

On Sun, Jun 05, 2011 at 11:41:24PM +0200, Vincent Lefevre wrote:
> Package: perl
> Version: 5.12.3-7
> Severity: important
> 
> perl consumes all the memory on:
> 
>   perl -e "open FILE, '<', \*STDIN or die; <FILE>;"

As discussed in the upstream ticket, the above got fixed for 5.14,
but this still triggers the malloc bomb:

 perl -le 'open FILE, "<", \($f=*STDIN) or die $!; print $_ while <FILE>;'

This is strictly speaking not a regression from squeeze as it didn't
work properly there either (it ended up reading random memory), but
the failure mode is a lot worse now.

The issue was fixed upstream in 5.14.3 with the attached patch.
I think this is a candidate for wheezy if it isn't too late.
-- 
Niko Tyni   ntyni at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-perl-92258-fh-hangs-on-a-glob-copy.patch
Type: text/x-diff
Size: 2242 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/perl-maintainers/attachments/20121019/dc957957/attachment.patch>


More information about the Perl-maintainers mailing list