Date: Sun, 24 Jan 2010 20:15:59 +0000 (UTC) From: David Schultz <das@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libc/stdio getdelim.c Message-ID: <201001242016.o0OKGJTc003191@repoman.freebsd.org>
index | next in thread | raw e-mail
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001242016.o0OKGJTc003191>
