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

[release/9.0] Fix length check for Convert.TryToHexString{Lower} #110228

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Nov 27, 2024

Backport of #109891 to release/9.0-staging

/cc @adamsitnik @universorum

Customer Impact

  • Customer reported
  • Found internally

The customers can't use the new Convert.TryToHexString{Lower} methods that got added in .NET 9, as due to an invalid condition (> swapped with <), we were rejecting buffers that were large enough to be able to store the results.

Regression

  • Yes
  • No

No, both overloads got added in .NET 9.

Testing

The issue was missed because the overload seemed simple enough to not require any new tests.

The fix contains a nice set of unit tests that exercise both happy and unhappy code paths.

Risk

I can't see any risks, it's a very, very simple fix.

@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Nov 27, 2024
@adamsitnik adamsitnik added area-System.Runtime and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Nov 27, 2024
Copy link
Contributor

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

@adamsitnik adamsitnik self-assigned this Nov 27, 2024
@adamsitnik adamsitnik added the Servicing-consider Issue for next servicing release review label Nov 27, 2024
@adamsitnik adamsitnik added this to the 9.0.x milestone Nov 27, 2024
@jeffhandley jeffhandley added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Nov 27, 2024
@GrabYourPitchforks GrabYourPitchforks changed the base branch from release/9.0-staging to release/9.0 December 2, 2024 22:35
@GrabYourPitchforks GrabYourPitchforks changed the base branch from release/9.0 to release/9.0-staging December 2, 2024 22:36
@GrabYourPitchforks GrabYourPitchforks changed the base branch from release/9.0-staging to release/9.0 December 2, 2024 22:40
@GrabYourPitchforks GrabYourPitchforks force-pushed the backport/pr-109891-to-release/9.0-staging branch from 84a732f to 3ba2b3a Compare December 2, 2024 22:41
Copy link
Member

@carlossanlop carlossanlop left a comment

Choose a reason for hiding this comment

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

Yay, 2 files once again after the force push. I assume I can merge it now @GrabYourPitchforks ?

Edit: Let's wait for the CI to finish, there's still time.

@GrabYourPitchforks
Copy link
Member

Rebased the current PR on release/9.0 per discussion with servicing team.

@GrabYourPitchforks
Copy link
Member

@carlossanlop Let's wait for CI to finish first. (Or at least to get most of the way through so we have good confidence we didn't break anything.)

@GrabYourPitchforks GrabYourPitchforks changed the title [release/9.0-staging] Fix length check for Convert.TryToHexString{Lower} [release/9.0] Fix length check for Convert.TryToHexString{Lower} Dec 2, 2024
@GrabYourPitchforks
Copy link
Member

@carlossanlop CI failures are unrelated. Feel free to merge!

@rbhanda rbhanda merged commit 9da8c6a into release/9.0 Dec 3, 2024
145 of 148 checks passed
@carlossanlop carlossanlop deleted the backport/pr-109891-to-release/9.0-staging branch December 3, 2024 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Runtime Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants