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 | dddbd1a0f6d61dabdf82984d0217728bf0a84c6b (patch) | |
tree | 35a92c95fd21e20ac42e3a3aeac9fe2971cb9990 /Python/pythonmain.c | |
parent | 76de8838994c60aac0d4a5eabd0c0d163a1ffff2 (diff) | |
download | cpython-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