View Issue Details

IDProjectCategoryView StatusLast Update
00015651003.1(2016/18)/Issue7+TC2System Interfacespublic2024-06-11 09:07
Reporterdennisw Assigned To 
PrioritynormalSeverityCommentTypeClarification Requested
Status ClosedResolutionAccepted 
NameDennis Wölfing
Organization
User Referencehttps://gitlab.com/sortix/sortix/-/issues/792
Sectionaccept, getpeername, getsockname, recvfrom, recvmsg
Page Number568, 1066, 1095, 1796, 1800
Line Number19869, 36257, 37100, 58151, 58259
Interp Status---
Final Accepted Text
Summary0001565: Ambiguous which length addr_len is set to
DescriptionMultiple socket functions have a socklen_t* address_len parameter that on output is specified to point to the length of the "stored address". However the length of the stored address is ambiguous because these functions are specified to truncate the stored address if the given buffer is too small, leaving it unclear whether the stored length is supposed to be the length before or after truncation.

This wording came from 0000464 where the description states that the length before truncation is intended.
Desired ActionOn page 568 line 19869 section accept, change
stored address
to
address of the connecting socket


On page 1066 line 36257 section getpeername, change
stored address
to
peer address


On page 1095 line 37100 section getsockname, change
stored address
to
socket address


On page 1796 line 58151 section recvfrom, change
stored address
to
sending address


On page 1800 line 58259 section recvmsg, change
stored address
to
source address
Tagstc3-2008

Relationships

related to 0000464 Closedajosey 1003.1(2008)/Issue 7 Inaccurate address_len description in socket functions 

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2022-03-03 20:35 dennisw New Issue
2022-03-03 20:35 dennisw Name => Dennis Wölfing
2022-03-03 20:35 dennisw User Reference => https://gitlab.com/sortix/sortix/-/issues/792
2022-03-03 20:35 dennisw Section => accept, getpeername, getsockname, recvfrom, recvmsg
2022-03-03 20:35 dennisw Page Number => 568, 1066, 1095, 1796, 1800
2022-03-03 20:35 dennisw Line Number => 19869, 36257, 37100, 58151, 58259
2022-04-21 14:17 geoffclare Relationship added related to 0000464
2022-04-21 15:08 Don Cragun Interp Status => ---
2022-04-21 15:08 Don Cragun Status New => Resolved
2022-04-21 15:08 Don Cragun Resolution Open => Accepted
2022-04-21 15:09 Don Cragun Tag Attached: tc3-2008
2022-05-23 11:25 geoffclare Status Resolved => Applied
2024-06-11 09:07 agadmin Status Applied => Closed