]> granicus.if.org Git - openssl/commit
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:40:34 +0000 (16:40 +1000)
commite1f8584d47a499301fba781086af6885fcf21fec
treec697782f488bc43ae2d2359c2e92e73675a20989
parentf42c225d7f9a0bce0bf46103343402d3f0ad742f
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)
crypto/rand/rand_unix.c