Skip to content

This change is to fix the error in getting the socket address on IPv6 networks - #7588

Closed
Jimmy-ge wants to merge 1 commit into
youtube:25.lts.1+from
Jimmy-ge:cobalt-dev-25-dev2
Closed

Jimmy-ge wants to merge 1 commit into
youtube:25.lts.1+from
Jimmy-ge:cobalt-dev-25-dev2

Conversation

@Jimmy-ge

Copy link
Copy Markdown
Contributor

This change is to fix the error in getting the socket address on IPv6 networks
Bug:401441408

@lamdbui

lamdbui commented Nov 12, 2025

Copy link
Copy Markdown
Member

@jellefoks , I recall we discussed this was a reasonable change. Can you take a quick look?

@jellefoks

Copy link
Copy Markdown
Member

Thanks for submitting this. I used this fix in #8053 after fixing the line formatting and adding tests that confirm that this fix works (the tests added fail without this fix).

jellefoks added a commit that referenced this pull request Nov 17, 2025
The Starboard layer wrapper for getaddrinfo() made incorrect copies of
the address returned for IPv6 addresses.

This fixes that and adds extensive testing using a host with known IP
addresses.

The fix is adopted from #7588 with
a simplification and additional tests.

This PR also includes an update to test certs for net_unittests that
expired Oct 29 2025.

Bug: 460175900
Bug: 438858995
Bug: 409716671
Bug: 460594994
Bug: 439002238
Bug: 405988446

---------

Co-authored-by: jimmy.ge <[email protected]>
@lamdbui

lamdbui commented Nov 19, 2025

Copy link
Copy Markdown
Member

Thank you, @Jimmy-ge for your contribution! Closing this as this was integrated into #8053 . Please try that when you get a chance.

@lamdbui lamdbui closed this Nov 19, 2025
jellefoks added a commit that referenced this pull request Dec 11, 2025
The Starboard layer wrapper for getaddrinfo() made incorrect copies of
the address returned for IPv6 addresses.

This fixes that and adds extensive testing using a host with known IP
addresses.

The fix is adopted from #7588 with
a simplification and additional tests.

This PR also includes an update to test certs for net_unittests that
expired Oct 29 2025.

Bug: 460175900
Bug: 438858995
Bug: 409716671
Bug: 460594994
Bug: 439002238
Bug: 405988446

---------

Co-authored-by: jimmy.ge <[email protected]>
jellefoks added a commit to jellefoks/cobalt that referenced this pull request Dec 11, 2025
The Starboard layer wrapper for getaddrinfo() made incorrect copies of
the address returned for IPv6 addresses.

This fixes that and adds extensive testing using a host with known IP
addresses.

The fix is adopted from youtube#7588 with
a simplification and additional tests.

This PR also includes an update to test certs for net_unittests that
expired Oct 29 2025.

Bug: 460175900
Bug: 438858995
Bug: 409716671
Bug: 460594994
Bug: 439002238
Bug: 405988446

---------

Co-authored-by: jimmy.ge <[email protected]>
jellefoks added a commit to jellefoks/cobalt that referenced this pull request Dec 15, 2025
The Starboard layer wrapper for getaddrinfo() made incorrect copies of
the address returned for IPv6 addresses.

This fixes that and adds extensive testing using a host with known IP
addresses.

The fix is adopted from youtube#7588 with
a simplification and additional tests.

This PR also includes an update to test certs for net_unittests that
expired Oct 29 2025.

Bug: 460175900
Bug: 438858995
Bug: 409716671
Bug: 460594994
Bug: 439002238
Bug: 405988446

---------

Co-authored-by: jimmy.ge <[email protected]>
msolya pushed a commit to msolya/cobalt that referenced this pull request Mar 6, 2026
The Starboard layer wrapper for getaddrinfo() made incorrect copies of
the address returned for IPv6 addresses.

This fixes that and adds extensive testing using a host with known IP
addresses.

The fix is adopted from youtube#7588 with
a simplification and additional tests.

This PR also includes an update to test certs for net_unittests that
expired Oct 29 2025.

Bug: 460175900
Bug: 438858995
Bug: 409716671
Bug: 460594994
Bug: 439002238
Bug: 405988446

---------

Co-authored-by: jimmy.ge <[email protected]>
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.

3 participants