summaryrefslogtreecommitdiffstats
path: root/Modules/getbuildinfo.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-06-30 02:46:07 (GMT)
committerFred Drake <fdrake@acm.org>2000-06-30 02:46:07 (GMT)
commita04eaad5c761451fdfeb5754c405c13248de1d3b (patch)
tree5f9b49666eabcfa3c79bec1f7ca6918311ce1be5 /Modules/getbuildinfo.c
parent5cdaf26be35157a4067d6e530a56ac35cae95e26 (diff)
downloadcpython-a04eaad5c761451fdfeb5754c405c13248de1d3b.zip
cpython-a04eaad5c761451fdfeb5754c405c13248de1d3b.tar.gz
cpython-a04eaad5c761451fdfeb5754c405c13248de1d3b.tar.bz2
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 'Modules/getbuildinfo.c')
0 files changed, 0 insertions, 0 deletions