[Ffmpeg-devel] poll() emulation for ffserver
François Revol
revol
Thu Feb 15 08:46:50 CET 2007
> Fran?ois Revol wrote:
> >> matthieu castet wrote:
> >
> > Now, seems the one in glibc doesn't do any more checking...
> > glibc/sysdeps/unix/bsd/poll.c simply takes any fd >= 0.
> > It does allocate the fd_set with the max fd size, but not checking
> > each
> > fd to be in that bound.
> > At least the version I have here, which is quite old.
> On newer they test it (and if it is bigger they increase the select
> FD_SETSIZE. They can do it because they know the internal :) )
Well they do check it but don't check for fds being inside it.
> > How about this one ?
> Look fine for me.
Commited, without the check for poll itself as HAVE_POLL wasn't even
used. If the header is here we assume it works.
Fran?ois.
More information about the ffmpeg-devel
mailing list