For What It's Worth, I patched version 2.67 with this patch, and the program
appeared to work normally. It did not Segfault when fed email.txt, and it still
detected it as spam, but I am not a programmer, so draw your own conclusions;
no warranty:

sample email at: http://www200.pair.com/mecham/email.txt

--- deHTMLxs.xs.orig    2005-06-23 08:24:04.000000000 -0600
+++ deHTMLxs.xs 2005-06-23 08:29:27.000000000 -0600
@@ -112,6 +112,7 @@
             text = SvRV(scalarref);
             raw = SvPV(text,size);
 
+            *(raw + size - 1) = '\0';
             if ( (cleaned = malloc(size+1)) && 
                  (res = html_strip(raw, cleaned))  // html_strip will memset 
cleaned to 0
                  ) {



Gary V



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to