Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix hashset comparison net80 #107686

Conversation

eiriktsarpalis
Copy link
Member

@eiriktsarpalis eiriktsarpalis commented Sep 11, 2024

Backport of #107613 to release/8.0

/cc @eiriktsarpalis

Customer Impact

  • Customer reported
  • Found internally

Fixes a customer reported issue where passing a HashSet<string> that has fallen back to randomized string comparison will result in a corrupted set being created.

Regression

  • Yes
  • No

Likely introduced in .NET 5 via #37180 which brought in non-randomized string comparison.

Testing

Added unit testing validating that the copy constructor works as expected.

Risk

Moderate. While this is a targeted fix, HashSet<T> is a very common core type so any change carries an elevated degree of risk.

carlossanlop and others added 3 commits September 9, 2024 15:43
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-collections
See info in area-owners.md if you want to be subscribed.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants