From owner-cvs-src-old@FreeBSD.ORG Sun Oct 4 19:43:50 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C41B610657B8 for ; Sun, 4 Oct 2009 19:43:50 +0000 (UTC) (envelope-from das@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id B2F978FC16 for ; Sun, 4 Oct 2009 19:43:50 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n94Jho52044821 for ; Sun, 4 Oct 2009 19:43:50 GMT (envelope-from das@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n94JhonY044820 for cvs-src-old@freebsd.org; Sun, 4 Oct 2009 19:43:50 GMT (envelope-from das@repoman.freebsd.org) Message-Id: <200910041943.n94JhonY044820@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to das@repoman.freebsd.org using -f From: David Schultz Date: Sun, 4 Oct 2009 19:43:36 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/stdio getdelim.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Oct 2009 19:43:50 -0000 das 2009-10-04 19:43:36 UTC FreeBSD src repository Modified files: lib/libc/stdio getdelim.c Log: SVN rev 197752 on 2009-10-04 19:43:36Z by das Better glibc compatibility for getline/getdelim: - Tolerate applications that pass a NULL pointer for the buffer and claim that the capacity of the buffer is nonzero. - If an application passes in a non-NULL buffer pointer and claims the buffer has zero capacity, we should free (well, realloc) it anyway. It could have been obtained from malloc(0), so failing to free it would be a small memory leak. MFC After: 2 weeks Reported by: naddy PR: ports/138320 Revision Changes Path 1.3 +2 -2 src/lib/libc/stdio/getdelim.c