Please sign in to comment.
BUG#17259750 - STACK CORRUPTION IN VIO_IO_WAIT ON MAC OS X
Description & Fix: On OS X, vio_io_wait is implemented using select system call (as per analysis in bug#11748945). The select system call cannot handle file descriptors greater than or equal to FD_SETSIZE. This causes stack corruption when FD_SET is used on this range of file descriptors. This fix is check if fd exceeds or equals FD_SETSIZE in vio_io_wait and return failure. Also if the connected file descriptor exceeds or equal FD_SETSIZE, do not accept the connection on OS X.
- Loading branch information...
Showing with 17 additions and 1 deletion.