Re: [PATCH,HURD] _hurd_select: check for invalid parameter values

2012-07-20 Thread Roland McGrath
> * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative > `timeout' values. > Return EINVAL for `nfds' values either negative or greater than > FD_SETSIZE. In a log entry, write a local variable name as FOO rather than `foo'. > + to = timeout->tv_sec * 1000 +

[PATCH,HURD] _hurd_select: check for invalid parameter values

2011-12-06 Thread Pino Toscano
Hi, attached there is a patch to add some validation for parameters of _hurd_select(). Thanks, -- Pino Toscano _hurd_select: check for invalid parameter values Check for invalid values of the `timeout' and `nfds' parameters; move the calculation of `to' right after the validation of `timeout'.