SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 130 Python

Three uses of makesockaddr() used sockaddr buffers that had not be cleared;

this could cause invalid paths to be returned for AF_UNIX sockets on some
platforms (including FreeBSD 4.2-RELEASE), appearantly because there is
no assurance that the address will be nul-terminated when filled in by the
kernel.

PySocketSock_recvfrom():  Use PyString_AS_STRING() to get the data pointer
    of a string we create ourselves; there is no need for the extra type
    check from PyString_AsString().

This closes SF bug #416573.
F
Fred Drake committed
fd16834ca7eec00fbdbfccbd551d335f2cbd5d3d
Parent: 5ac946c