Staging
v0.5.1
https://github.com/python/cpython
Revision 90f1db3d5da2947045653d7ecff43c4161061229 authored by Neal Norwitz on 07 February 2006, 07:17:37 UTC, committed by Neal Norwitz on 07 February 2006, 07:17:37 UTC
Bug #876637, prevent stack corruption when socket descriptor
is larger than FD_SETSIZE.

This can only be acheived with ulimit -n SOME_NUMBER_BIGGER_THAN_FD_SETSIZE
which is typically only available to root.  Since this wouldn't normally
be run in a test (ie, run as root), it doesn't seem too worthwhile to
add a normal test.  The bug report has one version of a test.  I've
written another.  Not sure what the best thing to do is.

Do the check before calling internal_select() because we can't set
an error in between Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS.
This seemed the clearest solution.
1 parent b5abd16
History
Tip revision: 90f1db3d5da2947045653d7ecff43c4161061229 authored by Neal Norwitz on 07 February 2006, 07:17:37 UTC
Backport:
Tip revision: 90f1db3
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.cvsignore -rw-r--r-- 109 bytes
.hgtags -rw-r--r-- 2.8 KB
LICENSE -rw-r--r-- 13.1 KB
Makefile.pre.in -rw-r--r-- 31.6 KB
README -rw-r--r-- 49.6 KB
aclocal.m4 -rw-r--r-- 2.1 KB
configure -rwxr-xr-x 582.8 KB
configure.in -rw-r--r-- 87.0 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 23.8 KB
setup.py -rw-r--r-- 52.5 KB

README

back to top