Message32759
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()
|
|
Date |
User |
Action |
Args |
2007-08-23 14:59:31 | admin | link | issue400517 messages |
2007-08-23 14:59:31 | admin | create | |
|