On Mon, Jun 09, 2003 at 11:22:45AM +0200, Alexander Leidinger wrote:
> On Mon, 9 Jun 2003 10:28:33 +0200
> [EMAIL PROTECTED] (Ted Lindgreen) wrote:
> 
> > However, I guess that mplayer has had this error already, but that
> > a change in uthread_close.c as of May 31 has caused this problem
> > to show up now.
> > In particular: the unprotected usage of a very large value of "fd"
> > in "_thread_fd_table[fd]" leads to the segmentation violation.
> > 
> > Previously the systemcall just returned an error without getting
> > into a segmentation violation.
> 
> > Question:
> >   shouldn't _close in uthread_close.c do some sanity check on "fd"
> >   before using it as an array index?
> 
> Try the attached patch.
> 
Alexander,

This patch looks great.  Please commit it.


-- 
Ruslan Ermilov          Sysadmin and DBA,
[EMAIL PROTECTED]               Sunbay Software Ltd,
[EMAIL PROTECTED]               FreeBSD committer

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to