You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2005/05/11 00:25:00 UTC

[Bug 4324] New: spamc segfaults if it cannot resolve host

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

           Summary: spamc segfaults if it cannot resolve host
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: spamc/spamd
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: maddenj+spamassassin@skynet.ie


./spamc -d does.not.exist <../sample-spam.txt
Segmentation fault



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

[Bug 4324] spamc segfaults if it cannot resolve host

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4324


maddenj+spamassassin@skynet.ie changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From maddenj+spamassassin@skynet.ie  2005-06-16 01:16 -------
This seems to be fixed in current trunk.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

[Bug 4324] spamc segfaults if it cannot resolve host

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4324





------- Additional Comments From maddenj+spamassassin@skynet.ie  2005-05-11 09:25 -------
Created an attachment (id=2866)
 --> (http://bugzilla.spamassassin.org/attachment.cgi?id=2866&action=view)
Patch to avoid segfault on unknown host




------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

[Bug 4324] spamc segfaults if it cannot resolve host

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4324


maddenj+spamassassin@skynet.ie changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dev@spamassassin.apache.org
         AssignedTo|dev@spamassassin.apache.org |maddenj+spamassassin@skynet.
                   |                            |ie




------- Additional Comments From maddenj+spamassassin@skynet.ie  2005-05-10 15:26 -------
Shouldn't be too difficult to fix. I'll take it on.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are on the CC list for the bug, or are watching someone who is.

[Bug 4324] spamc segfaults if it cannot resolve host

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4324





------- Additional Comments From maddenj+spamassassin@skynet.ie  2005-05-19 15:42 -------
This bug shows as :

free(): invalid pointer 0xbffff5d0!

under 32bit linux. I've had another look, and I'm wondering if the
initialisation of m.out = NULL; in spamc.c should be m.outbuf = NULL;



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

[Bug 4324] spamc segfaults if it cannot resolve host

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4324





------- Additional Comments From maddenj+spamassassin@skynet.ie  2005-05-11 09:24 -------
This happens because m.outbuf is free()'d in message_cleanup() without being
initialised. One line change in spamc.c (m.outbuf = NULL;) to follow.

It causes the segfault on my 64bit platform, and throws a free() error on 32bit.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

[Bug 4324] [review] spamc segfaults if it cannot resolve host

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4324





------- Additional Comments From spamassassin@dostech.ca  2005-10-11 10:15 -------
+1



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

[Bug 4324] [review] spamc segfaults if it cannot resolve host

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4324


jm@jmason.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |
            Summary|spamc segfaults if it cannot|[review] spamc segfaults if
                   |resolve host                |it cannot resolve host
   Target Milestone|Undefined                   |3.0.5




------- Additional Comments From jm@jmason.org  2005-06-16 14:21 -------
just moving to 3.0.5 queue, in case



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

[Bug 4324] [review] spamc segfaults if it cannot resolve host

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4324





------- Additional Comments From jm@jmason.org  2005-10-11 10:06 -------
+1



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

[Bug 4324] [review] spamc segfaults if it cannot resolve host

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4324


wtogami@redhat.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|3.0.5                       |---




------- Additional Comments From wtogami@redhat.com  2005-10-31 03:51 -------
Oops, this isn't even an issue in 3.0.5.  FIXED in 3.1.0.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

[Bug 4324] [review] spamc segfaults if it cannot resolve host

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4324





------- Additional Comments From wtogami@redhat.com  2005-10-11 08:27 -------
Created an attachment (id=3177)
 --> (http://bugzilla.spamassassin.org/attachment.cgi?id=3177&action=view)
spamassassin-3.0.4-4324-spamc-segfault-outbuf.patch

Proposed patch against 3.0.4



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.