Fix: usage of FD_SET on fd_set > 1024 results in corruption
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 3 Aug 2016 16:36:34 +0000 (12:36 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 3 Aug 2016 16:36:34 +0000 (12:36 -0400)
commit070fffdfb3f0b8f7a0af04f1481c517832e333e9
treeac61349d7b0b801c0f4b92786ff7a1c6a6166b4b
parent36bc42d93bfb26c02e17135ab4e0d6825418bee3
Fix: usage of FD_SET on fd_set > 1024 results in corruption

fd_set is (typically) defined as an 1024 bit long array.
Therefore, using FD_SET with an fd > 1024 will result in a buffer
overrun.

Reported-by: Coverity Scan
CID 1360535 (#1 of 1): Out-of-bounds write (OVERRUN)

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/regression/kernel/select_poll_epoll.c
This page took 0.025212 seconds and 4 git commands to generate.