Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[release/9.0] Fixing 0 length issue with constructor - #107881

#107881
Merged
ericstj merged 3 commits into
release/9.0dotnet/runtime:release/9.0from
backport/pr-107427-to-release/9.0dotnet/runtime:backport/pr-107427-to-release/9.0Copy head branch name to clipboard
Sep 16, 2024
Merged

[release/9.0] Fixing 0 length issue with constructor#107881
ericstj merged 3 commits into
release/9.0dotnet/runtime:release/9.0from
backport/pr-107427-to-release/9.0dotnet/runtime:backport/pr-107427-to-release/9.0Copy head branch name to clipboard

Conversation

@github-actions

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

Copy link
Copy Markdown
Contributor

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.

@ghost ghost added the area-System.Numerics label Sep 16, 2024
@dotnet-policy-service

Copy link
Copy Markdown
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
Copy Markdown
Contributor

/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
@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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.