From owner-cvs-src-old@FreeBSD.ORG Sun Jan 24 20:16:19 2010 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 B60161065698 for ; Sun, 24 Jan 2010 20:16:19 +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 A42268FC1D for ; Sun, 24 Jan 2010 20:16:19 +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 o0OKGJJe003192 for ; Sun, 24 Jan 2010 20:16:19 GMT (envelope-from das@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o0OKGJTc003191 for cvs-src-old@freebsd.org; Sun, 24 Jan 2010 20:16:19 GMT (envelope-from das@repoman.freebsd.org) Message-Id: <201001242016.o0OKGJTc003191@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to das@repoman.freebsd.org using -f From: David Schultz Date: Sun, 24 Jan 2010 20:15:59 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 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, 24 Jan 2010 20:16:19 -0000 das 2010-01-24 20:15:59 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) lib/libc/stdio getdelim.c Log: SVN rev 202947 on 2010-01-24 20:15:59Z by das MFC r197752: 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. Revision Changes Path 1.2.2.2 +2 -2 src/lib/libc/stdio/getdelim.c