author | Florian Forster <ff@octo.it> | |
Thu, 4 May 2017 11:57:22 +0000 (13:57 +0200) | ||
committer | Florian Forster <ff@octo.it> | |
Thu, 4 May 2017 12:06:13 +0000 (14:06 +0200) | ||
commit | 4442437848f4d07b91c8ae1512b562299a3e6070 | |
tree | 7ab490c9c3727a9e7c3dfff531c3e83db555aacc | tree | snapshot |
parent | 8f47022a866853da6477272b2c69855a1e2cff13 | commit | diff |
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.
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 | diff | blob | history |