[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS: cvs.openbsd.org: src



CVSROOT:	/cvs
Module name:	src
Changes by:	otto_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org	2005/01/05 12:48:08

Modified files:
	lib/libc/gen   : getcwd.c 

Log message:
Fix handling of memory allocation. Both the initial value of eup
and the new value of bup after realloc() were bogus.  This bug has
been here since the net.2 days.  Additionally, make the initial
size of the malloc'ed pieces of mem more sane and kill a redundant
test before free(). getcwd(3) is now able to return really long
paths.  Problem spotted by Peter Philipp <philipp at scan-plus dot de>

ok millert@ deraadt@



Visit your host, monkey.org