Author baikie
Recipients baikie, loewis, vstinner
Date 2010-04-12.18:08:29
SpamBayes Score 2.52957e-07
Marked as misclassified No
Message-id <1271095712.18.0.624691647332.issue8372@psf.upfronthosting.co.za>
In-reply-to
Content
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
zero-filling.

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 :)
History
Date User Action Args
2010-04-12 18:08:32baikiesetrecipients: + baikie, loewis, vstinner
2010-04-12 18:08:32baikiesetmessageid: <1271095712.18.0.624691647332.issue8372@psf.upfronthosting.co.za>
2010-04-12 18:08:30baikielinkissue8372 messages
2010-04-12 18:08:29baikiecreate