mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
correct bounds check of fd parameter
Noticed by: Coverity Prevent analysis tool
This commit is contained in:
parent
915a554b41
commit
3b30e64d22
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=142504
@ -93,7 +93,7 @@ ibcs2_poll(td, uap)
|
||||
&conv, sizeof(conv))) != 0)
|
||||
return error;
|
||||
conv.revents = 0;
|
||||
if (conv.fd < 0 || conv.fd > FD_SETSIZE)
|
||||
if (conv.fd < 0 || conv.fd >= FD_SETSIZE)
|
||||
continue;
|
||||
if (conv.fd >= nfds)
|
||||
nfds = conv.fd + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user