diff options
author | Fred Drake <fdrake@acm.org> | 2000-06-30 02:46:07 +0000 |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-06-30 02:46:07 +0000 |
commit | a04eaad5c761451fdfeb5754c405c13248de1d3b (patch) | |
tree | 5f9b49666eabcfa3c79bec1f7ca6918311ce1be5 /Python/pythonmain.c | |
parent | 5cdaf26be35157a4067d6e530a56ac35cae95e26 (diff) | |
download | cpython-git-a04eaad5c761451fdfeb5754c405c13248de1d3b.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