Re: Razor2 crashing on Linux on certain messages?

Gary V <[email protected]>
Newsgroups gmane.mail.spam.razor.user
Message-ID <[email protected]>
Gary wrote:

> I wonder if the developer(s) is aware of the problem noted in this post
> http://marc.theaimsgroup.com/?l=amavis-user&m=111582765520742&w=2

I was hoping this problem would have been fixed in 2.72, but when I
send this email:
https://po2.uni-stuttgart.de/~ruslucas/email.txt
through spamassassin (with Razor2 2.72 on a Red Hat 9.0 system):
spamassassin -tD < email.txt
I still get a Segmentation fault.

When I patch 2.72 with:

--- deHTMLxs.xs.orig    2005-06-20 14:24:34.000000000 -0600
+++ deHTMLxs.xs 2005-06-20 11:39:32.000000000 -0600
@@ -112,7 +112,7 @@
             text = SvRV(scalarref);
             raw = SvPV(text,size);
 
-            *(raw + size) = '\0';
+            *(raw + size -1) = '\0';
             if ( (cleaned = malloc(size+1)) && 
                  (res = html_strip(raw, cleaned))  // html_strip will memset cleaned to 0
                  ) {

The Segmentation fault no longer appears. I have no idea how this work-around
affects the program.

I created the patch by using this as a reference:
http://sourceforge.net/tracker/index.php?func=detail&aid=1003857&group_id=3978&atid=303978
which refers to an older version of deHTMLxs.xs.

It appears the only reason it did not die on FreeBSD is because the
package maintainer had applied these work-arounds, which have been
applied to some extent, but not fully, in version 2.72.

See also http://marc.theaimsgroup.com/?l=amavis-user&m=111928725005194&w=2

Gary V



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.