Avoid overflowing FDSET when using select(2).
authorPauli <paul.dale@oracle.com>
Sat, 24 Aug 2019 06:13:24 +0000 (16:13 +1000)
committerPauli <paul.dale@oracle.com>
Sat, 24 Aug 2019 06:45:53 +0000 (16:45 +1000)
commit4bdab2571782393e4ba3acb8578c415ce1575a75
tree3eca3b712cfd91c282485e979f3e1f0343522c94
parent738da3d0b8c63994e77d22457f8479c23e08b361
Avoid overflowing FDSET when using select(2).

There is a problem in the rand_unix.c code when the random seed fd is greater
than or equal to FD_SETSIZE and the FDSET overruns its limit and walks the
stack.

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/9686)

(cherry picked from commit e1f8584d47a499301fba781086af6885fcf21fec)
crypto/rand/rand_unix.c