summaryrefslogtreecommitdiff
path: root/Python/pythonmain.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-06-30 02:46:07 +0000
committerFred Drake <fdrake@acm.org>2000-06-30 02:46:07 +0000
commitdddbd1a0f6d61dabdf82984d0217728bf0a84c6b (patch)
tree35a92c95fd21e20ac42e3a3aeac9fe2971cb9990 /Python/pythonmain.c
parent76de8838994c60aac0d4a5eabd0c0d163a1ffff2 (diff)
downloadcpython-dddbd1a0f6d61dabdf82984d0217728bf0a84c6b.tar.gz
Trent Mick <trentm@activestate.com>:
This patch fixes possible overflows in the socket module for 64-bit platforms (mainly Win64). The changes are: - abstract the socket type to SOCKET_T (this is SOCKET on Windows, int on Un*x), this is necessary because sizeof(SOCKET) > sizeof(int) on Win64 - use INVALID_SOCKET on Win32/64 for an error return value for accept() - ensure no overflow of the socket variable for: (1) a PyObject return value (use PyLong_FromLongLong if necessary); and (2) printf formatting in repr(). Closes SourceForge patch #100516.
Diffstat (limited to 'Python/pythonmain.c')
0 files changed, 0 insertions, 0 deletions