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] Fixing 0 length issue with constructor #107881

Merged
merged 3 commits into from
Sep 16, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 16, 2024

Backport of #107427 to release/9.0

/cc @michaelgsharp

Customer Impact

  • Customer reported
  • Found internally

Fixes #106538 by modifying the check in the constructor to also throw an error if the base memory length is 0. Before if the length was 0 it wouldn't do some additional checks because it would never actually access the underlying memory. This caused some interesting behaviors. This fixes that so all those additional checks are now always performed.

Regression

  • Yes
  • No

Testing

Additional automated testing was added to test this specific behavior and scenario. It was missed before as its only caused by an interesting edge case.

Risk

Low risk. Tensor is going to be a preview release and was added in this 9.0 release.

IMPORTANT: If this backport is for a servicing release, please verify that:

  • The PR target branch is release/X.0-staging, not release/X.0.

  • If the change touches code that ships in a NuGet package, you have added the necessary package authoring and gotten it explicitly reviewed.

Copy link
Contributor

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

@michaelgsharp
Copy link
Member

/ba-g The single test failure is a known test failure not related to these changes.

@ericstj ericstj merged commit e61811a into release/9.0 Sep 16, 2024
82 of 86 checks passed
@michaelgsharp michaelgsharp deleted the backport/pr-107427-to-release/9.0 branch September 16, 2024 21:50
@github-actions github-actions bot locked and limited conversation to collaborators Oct 17, 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.

3 participants