From owner-freebsd-bugs Mon Apr 29 2:53:37 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 288D537B433 for ; Mon, 29 Apr 2002 02:50:41 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3T9ofr16633; Mon, 29 Apr 2002 02:50:41 -0700 (PDT) (envelope-from gnats) Date: Mon, 29 Apr 2002 02:50:41 -0700 (PDT) Message-Id: <200204290950.g3T9ofr16633@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Brad Knotwell Subject: bin/37461: memory leak in snprintf and vsnprintf Reply-To: Brad Knotwell Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/37461; it has been noted by GNATS. From: Brad Knotwell To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: bin/37461: memory leak in snprintf and vsnprintf Date: Thu, 25 Apr 2002 10:42:07 -0700 (PDT) >Number: 37461 >Category: bin >Synopsis: memory leak in snprintf and vsnprintf >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 25 10:50:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Brad Knotwell >Release: 4.5 >Organization: home >Environment: FreeBSD fiordland.brad.net 4.5-STABLE FreeBSD 4.5-STABLE #0: Mon Jan 28 14:51:47 PST 2002 root@magellan.brad.net:/usr/obj/usr/src/sys/BRAD i386 >Description: Since I've already done a send-pr for NetBSD that explains the problem, I'll just post a link: http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=16483 Remarkably, the commit log for snprintf.c indicates this problem (or an extremely close approximation; I was leaking in __smakebuf as well) was reported against 4.2, fixed, the PR (#26044) closed, and then unfixed. >How-To-Repeat: >Fix: I worked around the problem using a 1-character buffer. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message