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 baikie
Recipients baikie, loewis, vstinner
Date 2010-04-12.18:08:29
SpamBayes Score 2.5295714e-07
Marked as misclassified No
Message-id <>
Attaching the C test programs I forgot to attach yesterday -
sorry about that.  I've also tried these programs, and the
patches, on FreeBSD 5.3 (an old version from late 2004).  I found
that it accepted unterminated addresses as well, and unlike Linux
it did not normally null-terminate addresses at all - the
existing socket code only worked for addresses shorter than
sun_path because it zero-filled the structure beforehand.  The
return-unterminated patches worked with or without the

Unlike Linux, FreeBSD also accepted oversized sockaddr_un
structures (sun_path longer than its definition), so just
allowing unterminated addresses wouldn't make the full range of
addresses usable there.  That said, I did get a kernel panic
shortly after testing with oversized addresses, so perhaps it's
not a good idea to actually use them :)
Date User Action Args
2010-04-12 18:08:32baikiesetrecipients: + baikie, loewis, vstinner
2010-04-12 18:08:32baikiesetmessageid: <>
2010-04-12 18:08:30baikielinkissue8372 messages
2010-04-12 18:08:29baikiecreate