Skip to content

Fix Socket reading of abstract unix domain addresses - #16010

Merged
normanmaurer merged 5 commits into
4.2from
uds_abstract
Dec 11, 2025
Merged

normanmaurer merged 5 commits into
4.2from
uds_abstract

Conversation

@normanmaurer

Copy link
Copy Markdown
Member

Motivation:

How we calculated the length of the unix domain socket address was not correct.

Motification:

Follow the manpage in how the length is calculated

Result:

Always return the correct name for abstract unix domain sockets

Motivation:

How we calculated the length of the unix domain socket address was not correct.

Motification:

Follow the manpage in how the length is calculated

Result:

Always return the correct name for abstract unix domain sockets

@chrisvest chrisvest left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spotted a bug

Abstract domain socket paths are always at least sized
sizeof(sa_family_t) or greater.
@normanmaurer normanmaurer modified the milestones: 5.0.0.Final, 4.2.8.Final Dec 11, 2025
@normanmaurer
normanmaurer merged commit caa07bb into 4.2 Dec 11, 2025
19 of 20 checks passed
@normanmaurer
normanmaurer deleted the uds_abstract branch December 11, 2025 03:59
normanmaurer added a commit that referenced this pull request Dec 11, 2025
Motivation:

How we calculated the length of the unix domain socket address was not
correct.

Motification:

Follow the manpage in how the length is calculated

Result:

Always return the correct name for abstract unix domain sockets

---------

Co-authored-by: Chris Vest <christianvest_hansen@apple.com>
normanmaurer added a commit that referenced this pull request Dec 11, 2025
Motivation:

How we calculated the length of the unix domain socket address was not
correct.

Motification:

Follow the manpage in how the length is calculated

Result:

Always return the correct name for abstract unix domain sockets

---------

Co-authored-by: Chris Vest <christianvest_hansen@apple.com>
normanmaurer added a commit that referenced this pull request Dec 11, 2025
Motivation:

How we calculated the length of the unix domain socket address was not
correct.

Motification:

Follow the manpage in how the length is calculated

Result:

Always return the correct name for abstract unix domain sockets

Co-authored-by: Chris Vest <christianvest_hansen@apple.com>
normanmaurer added a commit that referenced this pull request Dec 11, 2025
Motivation:

How we calculated the length of the unix domain socket address was not
correct.

Motification:

Follow the manpage in how the length is calculated

Result:

Always return the correct name for abstract unix domain sockets

---------

Co-authored-by: Chris Vest <christianvest_hansen@apple.com>
@normanmaurer normanmaurer mentioned this pull request Sep 22, 2026
@normanmaurer normanmaurer mentioned this pull request Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants