From owner-freebsd-bugs Thu Apr 25 10:50:12 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 B6DDF37B416 for ; Thu, 25 Apr 2002 10:50:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3PHo2828169; Thu, 25 Apr 2002 10:50:02 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5D14F37B416 for ; Thu, 25 Apr 2002 10:42:07 -0700 (PDT) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3PHg7l26918; Thu, 25 Apr 2002 10:42:07 -0700 (PDT) (envelope-from nobody) Message-Id: <200204251742.g3PHg7l26918@freefall.freebsd.org> Date: Thu, 25 Apr 2002 10:42:07 -0700 (PDT) From: Brad Knotwell To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/37461: memory leak in snprintf and vsnprintf 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 >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