Code

Assure that no large file descriptors are passed to FD_SET().
authorFlorian Forster <ff@octo.it>
Thu, 4 May 2017 11:57:22 +0000 (13:57 +0200)
committerFlorian Forster <ff@octo.it>
Thu, 4 May 2017 12:06:13 +0000 (14:06 +0200)
commit4442437848f4d07b91c8ae1512b562299a3e6070
tree7ab490c9c3727a9e7c3dfff531c3e83db555aacc
parent8f47022a866853da6477272b2c69855a1e2cff13
Assure that no large file descriptors are passed to FD_SET().

When passing a large file descriptor, on many systems large means >= 1024,
FD_SET()s behavior is undefined. Mostly, it will corrupt the stack
because an out-of-bounds bit is flipped.
src/liboping.c