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

Fix Socket reading of abstract unix domain addresses#16010
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

Comment thread transport-native-unix-common/src/main/c/netty_unix_socket.c Outdated
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>
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