Subject: | $ma->expand loops until out of memory |
Date: | Tue, 08 May 2007 15:15:06 -0700 |
To: | bug-Mail-ExpandAliases [...] rt.cpan.org |
From: | Steven Kurylo <steven.kurylo [...] aviawest.com> |
Mail-ExpandAliases-0.44
This is perl, v5.8.8 built for i486-linux-gnu-thread-multi
Linux ubuntu 2.6.17-10-generic #2 SMP
Code to reproduce:
#!/usr/bin/perl -w
use strict;
use Mail::ExpandAliases;
my $ma = Mail::ExpandAliases->new("aliases");
my @list = $ma->expand("foo");
Contents of "aliases":
bar: bar
foo: bar
If I run the code:
$ perl test.pl
Deep recursion on subroutine "Mail::ExpandAliases::expand" at
/usr/share/perl5/Mail/ExpandAliases.pm line 235.
It will then continue until memory is exhausted.
If my aliases file looked like:
bar: \bar
foo: bar
Then it wouldn't be a problem.
Let me know if you need any more information.
Thank you.