To prvent readfds buffer it is necessary to check setsize varible like in glibc. Patch is attached.
Created attachment 4580 [details] patch