http://bugzilla.spamassassin.org/show_bug.cgi?id=3384

           Summary: Illegal division by zero in ::Message::Node::rendered()
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Platform: All
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Libraries
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I was running SA 3.0 (svn) for weeks without a problem,
but in recent days a new breed of spam started to trigger
an 'Illegal division by zero' bug in Message/Node.pm
in subroutine rendered(). Upgrading to today's SVN
(13 May 2004, version 3.0.0-r10591) did not resolve the problem,
I'm still getting (just for this type of spam) the:

Illegal division by zero at
  /usr/local/lib/perl5/site_perl/5.8.2/Mail/SpamAssassin/Message/Node.pm
  line 387

which is:

sub rendered {
...
        $r->{non_element_ratio} =
            ($r->{tags_seen} - $r->{elements_seen}) / $r->{tags_seen};

There are other potential 'Illegal division by zero' problems
lurking in the same routine, which may need a more robust
programming approach.

Regards
   Mark



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to