Austin Group Defect Tracker

Aardvark Mark IV


Viewing Issue Simple Details Jump to Notes ] Issue History ] Print ]
ID Category Severity Type Date Submitted Last Update
0001565 [1003.1(2016/18)/Issue7+TC2] System Interfaces Comment Clarification Requested 2022-03-03 20:35 2024-06-11 09:07
Reporter dennisw View Status public  
Assigned To
Priority normal Resolution Accepted  
Status Closed  
Name Dennis Wölfing
Organization
User Reference https://gitlab.com/sortix/sortix/-/issues/792 [^]
Section accept, getpeername, getsockname, recvfrom, recvmsg
Page Number 568, 1066, 1095, 1796, 1800
Line Number 19869, 36257, 37100, 58151, 58259
Interp Status ---
Final Accepted Text
Summary 0001565: Ambiguous which length addr_len is set to
Description Multiple 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 Action On 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
Tags tc3-2008
Attached Files

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

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


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker