[PATCH xproto v2] Don't let XFD_SETSIZE exceed FD_SETSIZE
Julien Cristau
julien at cristau.org
Mon Apr 25 21:30:58 UTC 2016
On Mon, Apr 25, 2016 at 17:12:08 +0100, James Clarke wrote:
> This fixes 2c94cdb453bc641246cc8b9a876da9799bee1ce7 on the Hurd, as FD_SETSIZE
> is only 256, and so anyone using XFD_SETSIZE to iterate over the contents of
> an fd_set will overrun the array.
>
> Signed-off-by: James Clarke <jrtc27 at jrtc27.com>
> ---
> Changes since v1:
> * Added Signed-off-by
> * Added xproto component to subject prefix
>
> Xpoll.h.in | 11 +++++++----
> 1 file changed, 7 insertions(+), 4 deletions(-)
>
Reviewed-by: Julien Cristau <jcristau at debian.org>
Cheers,
Julien
More information about the xorg-devel
mailing list