PATCH: trailing nul bytes in abstract socket names

Jakub Piotr Cłapa jpc at
Fri Sep 30 09:30:18 PDT 2005

John (J5) Palmieri wrote:
> Here is the patch with your suggestions.  I now check the length and
> return -1 with the error set if it is greater than
> _DBUS_MAX_SUN_PATH_LENGTH.  We assume no terminating nul byte.  I still
> have to write up the blurb in the spec.

This assumption about the nul bytes seems right. After reading the 
unix(7) manual first thing I thought about was that the address is 
"\0<<addr>>" without any trailing stuff.

Jakub Piotr Cłapa

More information about the dbus mailing list