Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Aug 2001 01:23:39 +0200 (CEST)
From:      marius@alchemy.franken.de
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/29521: /usr/sbin/mailwrapper tries to free unallocated memory (patch included)
Message-ID:  <200108072323.f77NNdQ62524@alchemy.franken.de>

next in thread | raw e-mail | index | archive | help

>Number:         29521
>Category:       bin
>Synopsis:       /usr/sbin/mailwrapper tries to free unallocated memory
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 07 16:20:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD alchemy.franken.de 4.3-STABLE FreeBSD 4.3-STABLE #0: Mon May 28 20:31:06 CEST 2001 root@alchemy.franken.de:/usr/obj/usr/bsd/build/4-stable/src/sys/alchemy i386

>Description:
/usr/sbin/mailwrapper as of today tries to free unallocated memory if the
config-file /etc/mail/mailer.conf is missing
>How-To-Repeat:
torweg# mv /etc/mail/mailer.conf /etc/mail/mailer.conf.bak
torweg# mailwrapper 
mailwrapper in free(): warning: junk pointer, too high to make sense.

(the warning above gets only displayed if compiled/run under freebsd 3-stable,
not under 4-stable)
>Fix:
--- mailwrapper.c.orig	Mon Aug  6 09:26:16 2001
+++ mailwrapper.c	Mon Aug  6 09:26:33 2001
@@ -130,7 +130,6 @@
		closelog();
		execve(_PATH_DEFAULTMTA, al.argv, envp);
		freearg(&al, 0);
-		free(line);
		err(1, "execing %s", _PATH_DEFAULTMTA);
		/*NOTREACHED*/
	}
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108072323.f77NNdQ62524>