This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tmick
Recipients
Date 2000-06-07.03:17:31
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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()
History
Date User Action Args
2007-08-23 14:59:31adminlinkissue400517 messages
2007-08-23 14:59:31admincreate