Skip to content

Add safety comment to Utf8HashLookup - #67477

Merged
BrennanConroy merged 1 commit into
mainfrom
levib/Utf8HashLookup_safety
Jun 30, 2026
Merged

BrennanConroy merged 1 commit into
mainfrom
levib/Utf8HashLookup_safety

Conversation

@GrabYourPitchforks

Copy link
Copy Markdown
Member

Adds a small devdoc warning to Utf8HashLookup to avoid people repurposing this type for storing adversarial values in the future. There's nothing at all wrong with the current usage; this is just a warning against somebody misusing it in the future.

More info:
https://github.com/dotnet/runtime/blob/main/docs/design/security/System.HashCode.md

Copilot AI review requested due to automatic review settings June 29, 2026 23:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds an XML-doc <remarks> warning to Utf8HashLookup to discourage future misuse of this internal type in adversary-influenced scenarios (hash-collision attack risk), aligning with the guidance referenced from dotnet/runtime.

Changes:

  • Added <remarks> documentation warning about hash-collision attack robustness and avoiding adversary-influenced keys.

@BrennanConroy

Copy link
Copy Markdown
Member

/ba-g Doc comment update, no code change, failures unrelated.

@BrennanConroy
BrennanConroy merged commit 360e42c into main Jun 30, 2026
24 of 28 checks passed
@BrennanConroy
BrennanConroy deleted the levib/Utf8HashLookup_safety branch June 30, 2026 18:15
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jul 2, 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.

3 participants