| Anonymous | Login | Signup for a new account | 2013-05-23 14:05 UTC |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
| ID | Category | Severity | Type | Date Submitted | Last Update | |||||||
| 0000561 | [1003.1(2008)/Issue 7] System Interfaces | Objection | Error | 2012-05-03 16:14 | 2012-05-04 22:21 | |||||||
| Reporter | eblake | View Status | public | |||||||||
| Assigned To | ajosey | |||||||||||
| Priority | normal | Resolution | Open | |||||||||
| Status | Under Review | |||||||||||
| Name | Eric Blake | |||||||||||
| Organization | Red Hat | |||||||||||
| User Reference | ebb.sockaddr_un | |||||||||||
| Section | <sys/un.h> | |||||||||||
| Page Number | 403 | |||||||||||
| Line Number | 13515 | |||||||||||
| Interp Status | --- | |||||||||||
| Final Accepted Text | ||||||||||||
| Summary | 0000561: NUL-termination of sun_path in Unix sockets | |||||||||||
| Description |
Several messages on the mail reflector pointed out some issues with Unix sockets, as provided by <sys/un.h>. The standard is ambiguous whether a Unix socket filename when passed through and interface such as getsockname with a too-small size will guarantee NUL termination of the resulting output; however, many existing applications assume the presence of a NUL terminator, and may misbehave if one is not guaranteed. Furthermore, all implementations currently implement sun_path as the last member of struct sockaddr_un, but without a guarantee, it is not possible to provide an input structure larger than sockaddr_un in order to guarantee NUL termination if all bytes of sun_path are allowed to be non-NUL. Other issues include the fact that POSIX 1003.1g defined a macro SUN_LEN to help in computing the length of a socket name, but this macro was not incorporated into POSIX 2008. |
|||||||||||
| Desired Action |
Additional requirements need to be added to specify the treatment of all socket families that bind to a filename. The wording is still a work in progress, and will be added as a note later; for now, this defect serves as a placeholder to identify the issue. |
|||||||||||
| Tags | No tags attached. | |||||||||||
| Attached Files | ||||||||||||
|
|
||||||||||||
| Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |