Re: Undefined behavior in decode_select

2014-05-22 Thread Dmitry V. Levin
On Fri, May 23, 2014 at 02:11:54AM +0200, Robert Święcki wrote: > Hi, > > strace will behave in an undefined way (crash under current glibc), if the > fd argument to FD_ISSET() macro is >= FD_SETSIZE. It was fixed by commit v4.8-72-gc2982b5. Thanks for reporting. :) -- ldv pgpHYCHzti_9a.pgp

Undefined behavior in decode_select

2014-05-22 Thread Robert Święcki
Hi, strace will behave in an undefined way (crash under current glibc), if the fd argument to FD_ISSET() macro is >= FD_SETSIZE. I guess, the code needs to check (in decode_select) that nfd (first select's arg) is < FD_SETSIZE. $ cat a.c #include int main(void) { fd_set set; select(1200, &