> I got one sample myself. It causes Perl process to exceed virtual memory
> quota during evaluation of a regular expression in sub parse_received,
> due to deep recursion. [...] I'll see what can be done better.
Here is a better quick-fix, applies to 2.4.2 and later,
including 2.5.*. The 2.6.0-pre1 already includes this fix.
--- amavisd~ Fri Sep 29 21:12:49 2006
+++ amavisd Wed Sep 5 03:51:40 2007
@@ -2436,5 +2436,6 @@
$received =~ s/\n([ \t])/$1/g; # unfold
$received =~ s/[\n\r]//g; # delete remaining newlines if any
- my(%fields);
+ $received =~ s/[ \t]+/ /g; # compress whitespace as a quickfix/bandaid
+ my(%fields); # for deep recursion in regexp evaluation
while ($received =~ m{\G\s*
( \b(from|by) \s+ ( (?: \[ (?: \\. | [^\]\\] )* \] | [^;\s\[] )+ )
Mark
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/