Skip to content

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.

@ghost ghost 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
Contributor

@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
@github-actions github-actions bot locked and limited conversation to collaborators Jan 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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