From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Sep 2 02:10:06 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D85591065670 for ; Wed, 2 Sep 2009 02:10:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C753A8FC27 for ; Wed, 2 Sep 2009 02:10:06 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n822A6p2064151 for ; Wed, 2 Sep 2009 02:10:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n822A61v064148; Wed, 2 Sep 2009 02:10:06 GMT (envelope-from gnats) Date: Wed, 2 Sep 2009 02:10:06 GMT Message-Id: <200909020210.n822A61v064148@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Corey Halpin Cc: Subject: Re: ports/137972: mail/fetchmail 6.3.11 crashes with segmentation fault on start X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Corey Halpin List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Sep 2009 02:10:06 -0000 The following reply was made to PR ports/137972; it has been noted by GNATS. From: Corey Halpin To: bug-followup@FreeBSD.org, chrissicool@chrissicool.net Cc: Subject: Re: ports/137972: mail/fetchmail 6.3.11 crashes with segmentation fault on start Date: Tue, 1 Sep 2009 20:57:04 -0500 Quite right. A patch for the port is attached. ~crh diff -ruN /usr/ports/mail/fetchmail/files/socket.c.patch fetchmail/files/socket.c.patch --- /usr/ports/mail/fetchmail/files/socket.c.patch 1969-12-31 18:00:00.000000000 -0600 +++ fetchmail/files/socket.c.patch 2009-09-01 20:45:14.000000000 -0500 @@ -0,0 +1,15 @@ +--- socket.c.org 2009-08-08 16:01:49.000000000 +0200 ++++ socket.c 2009-08-08 16:03:17.000000000 +0200 +@@ -628,9 +628,10 @@ + report(stdout, GT_("Unknown Issuer CommonName\n")); + } + if ((i = X509_NAME_get_text_by_NID(subj, NID_commonName, buf, sizeof(buf))) != -1) { +- if (outlevel >= O_VERBOSE) ++ if (outlevel >= O_VERBOSE) { + report(stdout, GT_("Server CommonName: %s\n"), (tt = sdump(buf, i))); +- xfree(tt); ++ xfree(tt); ++ } + if ((size_t)i >= sizeof(buf) - 1) { + /* Possible truncation. In this case, this is a DNS name, so this + * is really bad. We do not tolerate this even in the non-strict case. */