On 6 July 2016 at 00:09, Christopher Schultz <ch...@christopherschultz.net>
wrote:

> > From what I understand a buffer overflow would only happen for
> > FD_SET if the fd_set gets over 1024 descriptors. I made sure that
> > my ulimit for open files is set and applied large enough, so that's
> > not it.
>
> There's nothing magic about the ulimit. An fd_set should size
> appropriately for your OS. On my Linux system, FD_SETSIZE happens to
> be set to 1024. Reading through the byzantine labyrinth of includes,
> it appears that FD_SET has zero boundary-checking, so it's therefore
> possible that overflow will occur.


Regarding the FD_SETSIZE, it is also set for me to 1024 although the ulimit
is set higher.


I'm a bit lost now on what I should do now. What makes me wonder is, that
nobody else seems to hit this limitation of FD_SET and this makes me think
something on my Linux machine is not right.

What would you guys suggest? Should I file a bug report? My system runs
stable now after the change to poll() and I don't hit that problem anymore.

Thanks,
Michael

Reply via email to