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

CVS: cvs.openbsd.org: src



CVSROOT:	/cvs
Module name:	src
Changes by:	art_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org	2002/02/04 04:43:16

Modified files:
	sys/kern       : vfs_syscalls.c 

Log message:
Don't ffree the newly allocated file before calling dupfdopen.
In some cases that could cause dupfdopen->fd_getfile to access freed memory
setting fd_ofiles[fd] to NULL is not a solution because that would cause
a race condition.

Free the new file after dupfdopen and use closef (because it will be necessary
in the future.

XXX - consider more cleanup of the code around dupfdopen.



Visit your host, monkey.org