Date: Tue, 11 May 2004 07:26:29 +0200 (CEST) From: Udo Schweigert <udo.schweigert@siemens.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/66507: maintainer-update of mail/mutt Message-ID: <200405110526.i4B5QTHr045788@alaska.cert.siemens.com> Resent-Message-ID: <200405110530.i4B5UO2s081599@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 66507 >Category: ports >Synopsis: maintainer-update of mail/mutt >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon May 10 22:30:23 PDT 2004 >Closed-Date: >Last-Modified: >Originator: Udo Schweigert >Release: FreeBSD 4.9-STABLE i386 >Organization: >Environment: >Description: Maintainer update of mail/mutt: - Fix the tmpfile patch to really include the right bounds for snprintf() and strncat(). >How-To-Repeat: >Fix: diff -ru /usr/ports/mail/mutt/files/patch-mktemp ./files/patch-mktemp --- /usr/ports/mail/mutt/files/patch-mktemp Tue May 11 06:06:22 2004 +++ ./files/patch-mktemp Tue May 11 07:13:16 2004 @@ -7,9 +7,9 @@ - snprintf (s, _POSIX_PATH_MAX, "%s/mutt-%s-%d-%d", NONULL (Tempdir), NONULL(Hostname), (int) getpid (), Counter++); + char t[7]; + snprintf (t, 7, "-%05d", Counter++); -+ snprintf (s, _POSIX_PATH_MAX-7, "%s/mutt-%s-XXXXXXXX", NONULL(Tempdir), NONULL(Hostname)); ++ snprintf (s, _POSIX_PATH_MAX-6, "%s/mutt-%s-XXXXXXXX", NONULL(Tempdir), NONULL(Hostname)); + mktemp (s); -+ strncat(s, t, _POSIX_PATH_MAX); ++ strncat(s, t, 6); unlink (s); } >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405110526.i4B5QTHr045788>