Re: Re Regression: Playing QT files from mplayer stopped working in 5.1

From: Alexander Leidinger <Alexander_at_Leidinger.net>
Date: Mon, 9 Jun 2003 11:22:45 +0200
On Mon, 9 Jun 2003 10:28:33 +0200
ted_at_NLnetLabs.nl (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.

Bye,
Alexander.

-- 
           Intel: where Quality is job number 0.9998782345!

http://www.Leidinger.net                       Alexander _at_ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7

Received on Mon Jun 09 2003 - 00:23:02 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:11 UTC