Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: SECURITY.NNOV: Multiple applications fd_set structure bitmap array index overflow |
|---|---|
| Date: | Sat, 29 Jan 2005 10:17:00 +1100 |
if (__i == ((fd_set FAR *)(set))->fd_count) { \
if (((fd_set FAR *)(set))->fd_count < FD_SETSIZE) { \
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
((fd_set FAR *)(set))->fd_array[__i] = (fd); \
((fd_set FAR *)(set))->fd_count++; \
} \
} \
} while(0)
So if you attempted to put FD_SETSIZE + 1 sockets into an fd_set, it would just fail.
This effectively limits select to a maximum of FD_SETSIZE descriptors on Windows. I don't think that this limitiation exists on other platforms.
Correctly written programs dynamically allocate their FD_SETs to avoid these problems (or they use poll or some other mechanism instead).
-d
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [Full-Disclosure] [ GLSA 200501-40 ] ngIRCd: Buffer overflow, Thierry Carrez |
|---|---|
| Next by Date: | RE: SECURITY.NNOV: Multiple applications fd_set structure bitmap array index overflow, David LeBlanc |
| Previous by Thread: | RE: SECURITY.NNOV: Multiple applications fd_set structure bitmap array index overflow, David LeBlanc |
| Next by Thread: | Re[2]: SECURITY.NNOV: Multiple applications fd_set structure bitmap array index overflow, 3APA3A |
| Indexes: | [Date] [Thread] [Top] [All Lists] |