]> git.ipfire.org Git - thirdparty/squid.git/commit
Restrict limited select() I/O loop below FD_SETSIZE.
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 12 Jun 2010 10:53:08 +0000 (22:53 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 12 Jun 2010 10:53:08 +0000 (22:53 +1200)
commit0979b3a68b820cd60a0c2618c2ac89f288eb341d
treeaeb46b378543ab05a718af15c5bf8d2c2c57e537
parent226e6561a8138744be5a1308b26764553c83d7b7
Restrict limited select() I/O loop below FD_SETSIZE.

Henrik informs that loosp using fd_set() (select and win32-select) must
be kept below FD_SETSIZE or they can hang Squid or cause out-of-bounds
memory errors.

NP: Squid-2 does not appear to limit select() like this. May need fixing too.
src/tools.cc