NetBSD Problem Report #51810
From www@NetBSD.org Tue Jan 10 09:33:13 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id C00D97A2B4
for <gnats-bugs@gnats.NetBSD.org>; Tue, 10 Jan 2017 09:33:13 +0000 (UTC)
Message-Id: <20170110093312.D6D587A2B6@mollari.NetBSD.org>
Date: Tue, 10 Jan 2017 09:33:12 +0000 (UTC)
From: yaneurabeya@gmail.com
Reply-To: yaneurabeya@gmail.com
To: gnats-bugs@NetBSD.org
Subject: [PATCH] tests/lib/libc/gen/t_humanize_number: don't leak buf in :humanize_number_basic
X-Send-Pr-Version: www-1.0
>Number: 51810
>Category: bin
>Synopsis: [PATCH] tests/lib/libc/gen/t_humanize_number: don't leak buf in :humanize_number_basic
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 10 09:35:01 +0000 2017
>Closed-Date: Tue Jan 10 18:17:21 +0000 2017
>Last-Modified: Tue Jan 10 18:17:21 +0000 2017
>Originator: Ngie Cooper
>Release: 7.0.2
>Organization:
>Environment:
n/a
>Description:
Don't leak buf in :humanize_number_basic
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
From: "Ngie Cooper (yaneurabeya)" <yaneurabeya@gmail.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: bin/51810: [PATCH] tests/lib/libc/gen/t_humanize_number: don't
leak buf in :humanize_number_basic
Date: Tue, 10 Jan 2017 01:40:54 -0800
--Apple-Mail=_31056FB4-CC9A-40BD-B0CD-D98D2FB80220
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=us-ascii
Patch attached.
--Apple-Mail=_31056FB4-CC9A-40BD-B0CD-D98D2FB80220
Content-Disposition: attachment;
filename=t_humanize_number-dont-leak-buf.patch
Content-Type: application/octet-stream;
x-unix-mode=0644;
name="t_humanize_number-dont-leak-buf.patch"
Content-Transfer-Encoding: 7bit
Index: t_humanize_number.c
===================================================================
RCS file: /cvsroot/src/tests/lib/libc/gen/t_humanize_number.c,v
retrieving revision 1.8
diff -p -u -r1.8 t_humanize_number.c
--- t_humanize_number.c 18 Mar 2012 07:14:08 -0000 1.8
+++ t_humanize_number.c 10 Jan 2017 09:32:04 -0000
@@ -241,6 +241,7 @@ ATF_TC_BODY(humanize_number_basic, tc)
newline();
atf_tc_fail_nonfatal("Failed for table entry %d", i);
}
+ free(buf);
}
ATF_TC(humanize_number_big);
--Apple-Mail=_31056FB4-CC9A-40BD-B0CD-D98D2FB80220--
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/51810 CVS commit: src/tests/lib/libc/gen
Date: Tue, 10 Jan 2017 10:20:44 -0500
Module Name: src
Committed By: christos
Date: Tue Jan 10 15:20:44 UTC 2017
Modified Files:
src/tests/lib/libc/gen: t_humanize_number.c
Log Message:
PR/51810: Ngie Cooper: don't leak buf
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/tests/lib/libc/gen/t_humanize_number.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 10 Jan 2017 18:17:21 +0000
State-Changed-Why:
christos committed it, thanks
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.