spamassassin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmarti...@apache.org
Subject svn commit: r703487 - /spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm
Date Fri, 10 Oct 2008 14:47:55 GMT
Author: mmartinec
Date: Fri Oct 10 07:47:55 2008
New Revision: 703487

URL: http://svn.apache.org/viewvc?rev=703487&view=rev
Log:
PMS::_handle_hit: check rule score for NaN before adding it, possibly Bug 3364

Modified:
    spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm?rev=703487&r1=703486&r2=703487&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm Fri Oct 10 07:47:55 2008
@@ -2087,6 +2087,12 @@
       return;
     }
 
+    # this should not happen; warn about NaN
+    if ($score != $score) {
+      warn "rules: score '$score' for rule '$rule' in '$area' '$desc'";
+      return;
+    }
+
     # Add the rule hit to the score
     $self->{score} += $score;
 



Mime
View raw message