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 loewis
Recipients Edward.Pilatowicz, loewis
Date 2010-06-03.06:56:53
SpamBayes Score 0.00011920914
Marked as misclassified No
Message-id <4C075234.1020503@v.loewis.de>
In-reply-to <1275528470.51.0.813873994417.issue8882@psf.upfronthosting.co.za>
Content
>      Applications should not assume a particular length for sun_path or
>      assume that it can hold {_POSIX_PATH_MAX} characters (255).
>
> hence, it seems to me that python should not actually be doing any size
> checks on the path passed to getsockaddrarg().

You are misinterpreting the specification. What they say is that the 
right way of doing it is the way Python currently does it.

"not assume a particular length" means "not assume, in the source code,
and specific fixed length, such as 108, or 255". Now, if the program 
must not assume any specific length, it must use sizeof instead to 
determine how large sun_path is.

If your operating system declares sun_path to be shorter than the 
strings it actually supports, complain to your operating system vendor 
that they fix their header files.
History
Date User Action Args
2010-06-03 06:56:57loewissetrecipients: + loewis, Edward.Pilatowicz
2010-06-03 06:56:55loewislinkissue8882 messages
2010-06-03 06:56:54loewiscreate