Repository navigation
Conversation
|
Azure Pipelines: Successfully started running 3 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @karelz, @dotnet/ncl |
Member
|
Hi, the code complete date for 10.0.16 (the December 2026 release) is Monday 16 November. Make sure to merge this PR on that date at the latest, or it won't make it into that release. As a reminder, if this is a product change, you also need Tactics approval before merging this PR (test-only or infra-only changes don't require Tactics approval). Happy to help with the merge if needed! |
Author
|
Is there anything more I need to do? This is a simple backport of an existing bugfix. |
Member
|
It needs approval from the servicing leadership @jeremy-morren. I'll try to pitch it there. |
jeremy-morren
force-pushed
the
backport/ipnetwork-contains-mapped-ipv4-10.0
branch
from
November 16, 2026 18:06
170b46e to
7b57c6b
Compare
wfurt
approved these changes
Nov 16, 2026
Member
|
servicing approved via email. |
This was referenced Nov 16, 2026
Member
|
/ba-g test failures unrelated |
jeremy-morren
deleted the
backport/ipnetwork-contains-mapped-ipv4-10.0
branch
November 19, 2026 01:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #131862 to release/10.0.
Fixes #131861
Description
IPNetwork.Containschose the IPv4 comparison from the queried address, so IPv4-mapped addresses were compared as IPv4 against IPv6 networks. It now chooses from the network's address family.Customer Impact
Wrong results for IPv4-mapped addresses in IPv6 networks, e.g.
::1/128contains::ffff:0.0.0.1, and::ffff:0.0.0.0/96doesn't contain::ffff:1.2.3.4. Reported on 10.0.12 in #134557.Regression
Yes, since .NET 9 (#103381).
Testing
New
IPNetworkTestcases, which fail without the fix. System.Net.Primitives functional tests pass.Risk
Low. One-line change, limited to IPv4-mapped addresses checked against IPv6 networks.