Bug 1442 - sigfault in spamc in spamassassin 2.44
Summary: sigfault in spamc in spamassassin 2.44
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: spamc/spamd (show other bugs)
Version: unspecified
Hardware: All All
: P2 major
Target Milestone: ---
Assignee: Malte S. Stretz
URL: http://msquadrat.de/pub/softlib/spama...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-04 02:04 UTC by Nicolas Chuche
Modified: 2003-02-03 18:02 UTC (History)
1 user (show)



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Chuche 2003-02-04 02:04:08 UTC
Sigfault in spamc due to a free(buf) on an array :

% diff -bu libspamc.c~ libspamc.c
--- libspamc.c~ Fri Jan 31 15:49:03 2003
+++ libspamc.c  Tue Feb  4 10:47:10 2003
@@ -371,7 +371,6 @@
     if(i<0 || len >= bufsiz){ free(m->out); m->out=m->msg;
m->out_len=m->msg_len; return EX_OSERR; }
 
     if((i=try_to_connect(addr, &sock))!=EX_OK){
-        free(buf);
         free(m->out); m->out=m->msg; m->out_len=m->msg_len;
         return i;
     }
Comment 1 Malte S. Stretz 2003-02-04 02:15:17 UTC
Arrgh. I hate it when patches don't apply cleanly.  
Comment 2 Malte S. Stretz 2003-02-04 03:02:48 UTC
Ok. Fix applied. A fixed build is available here [1]. 
 
[1]http://msquadrat.de/pub/softlib/spamassassin/Mail-SpamAssassin-2.44-mss1.tar.gz 
Comment 3 Antony Mawer 2003-02-04 04:42:40 UTC
Subject: Re: [SAdev]  New: sigfault in spamc in spamassassin 2.44 


> Sigfault in spamc due to a free(buf) on an array :

dammit.  Malte, what do you think -- new release needed?