Date: Wed, 3 Mar 2010 15:43:26 +0000 (UTC) From: Jaakko Heinonen <jh@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libc/stdlib reallocf.c Message-ID: <201003031543.o23Fhgbi050596@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jh 2010-03-03 15:43:26 UTC
FreeBSD src repository
Modified files:
lib/libc/stdlib reallocf.c
Log:
SVN rev 204636 on 2010-03-03 15:43:26Z by jh
In reallocf(3), free the memory only when size != 0. Otherwise, when the
System V compatibility option (malloc "V" flag) is in effect a zero sized
reallocf() could cause a double free.
PR: bin/141753
Submitted by: Dan Lukes
Revision Changes Path
1.5 +8 -1 src/lib/libc/stdlib/reallocf.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003031543.o23Fhgbi050596>
