View Issue Details

IDProjectCategoryView StatusLast Update
0001593Issue 8 draftsBase Definitions and Headerspublic2023-01-09 16:57
Reporterjscott0 Assigned To 
PrioritynormalSeverityObjectionTypeOmission
Status ClosedResolutionDuplicate 
Product VersionDraft 2 
NameJohn Scott
Organizationunaffiliated
User Reference
Sectionsys/un.h
Page Number403
Line Number13894
Final Accepted Text
Summary0001593: specify whether struct sockaddr_un.sun_path can be a flexible array member
DescriptionAs briefly discussed on austin-group-l, the Standard currently uses flexible array member notation for struct sockaddr_un.sun_path, and this causes some confusion. No implementations are known to use a flexible array member, and furthermore, such an implementation would mean that struct sockaddr_storage would not be suitable for encapsulating a struct sockaddr_un as is intended (unless the size of struct sockaddr_storage were SIZE_MAX, which is absurd and not appropriate for automatic allocation).

If this Desired Action is considered too stringent, an alternative could be to permit sun_path to be a flexible array member.
Desired ActionLine numbers are from the 1003.1-202x Draft 2, May 2021 document.

At page 403, after line 13894 (the definition of struct sockaddr_un's members), insert the following sentence:
"The sun_path member shall have non-zero size."

At line 13903 in the APPLICATION USAGE, modify the sentence so that it reads "Applications should not assume that sun_path can hold {_POSIX_PATH_MAX} bytes (256)."
TagsNo tags attached.

Relationships

duplicate of 0000561 Closedajosey 1003.1(2008)/Issue 7 NUL-termination of sun_path in Unix sockets 

Activities

eblake

2022-12-01 16:21

manager   bugnote:0006090

With 0000561 resolved, it looks like this can now be closed as a duplicate.

Don Cragun

2023-01-09 16:57

manager   bugnote:0006103

The changes for this issue are included in the resolution of 0000561.

Issue History

Date Modified Username Field Change
2022-07-18 00:22 jscott0 New Issue
2022-07-18 00:22 jscott0 Name => John Scott
2022-07-18 00:22 jscott0 Organization => unaffiliated
2022-07-18 00:22 jscott0 Section => sys/un.h
2022-07-18 00:22 jscott0 Page Number => 403
2022-07-18 00:22 jscott0 Line Number => 13894
2022-07-20 20:34 eblake Relationship added related to 0000561
2022-12-01 16:21 eblake Note Added: 0006090
2023-01-09 16:56 Don Cragun Relationship replaced duplicate of 0000561
2023-01-09 16:57 Don Cragun Note Added: 0006103
2023-01-09 16:57 Don Cragun Status New => Closed
2023-01-09 16:57 Don Cragun Resolution Open => Duplicate