• Fred Drake's avatar
    Trent Mick <trentm@activestate.com>: · a04eaad5
    Fred Drake yazdı
    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.
    a04eaad5
Adı
Son kayıt (commit)
Son güncelleme
BeOS Loading commit data...
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...