summaryrefslogtreecommitdiff
path: root/Python/getcopyright.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-05-09 19:11:33 +0000
committerFred Drake <fdrake@acm.org>2001-05-09 19:11:33 +0000
commitfd16834ca7eec00fbdbfccbd551d335f2cbd5d3d (patch)
tree84f193ee125964b97fb8cbd7751d9a2e4230eeef /Python/getcopyright.c
parent5ac946c6975c602117e336dc5f239c4fd38c0b03 (diff)
downloadcpython-git-fd16834ca7eec00fbdbfccbd551d335f2cbd5d3d.tar.gz
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.
Diffstat (limited to 'Python/getcopyright.c')
0 files changed, 0 insertions, 0 deletions