FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[release/9.0] Fixing SetSlice, Reshape, TryCopyTo. by github-actions[bot] · Pull Request #108282 · dotnet/runtime · GitHub

Repository navigation

[release/9.0] Fixing SetSlice, Reshape, TryCopyTo. - #108282

Merged
ericstj merged 6 commits into
release/9.0from
backport/pr-107852-to-release/9.0
Sep 30, 2024
Merged

ericstj merged 6 commits into
release/9.0from
backport/pr-107852-to-release/9.0

Conversation

github-actions Bot commented Sep 26, 2024 •
edited by ericstj
Loading

Copy link
Copy Markdown
Contributor

Backport of #107852 to release/9.0

/cc @michaelgsharp

Customer Impact

  • Customer reported
  • Found internally

When users call Slice on a TensorSpan, if that slice is not contiguous or dense and then Reshape is called, it can result in the user getting an IndexOutOfRangeException or exposing memory that was initially hidden. Likewise, if the user calls SetSlice on a TensorSpan that is not contiguous or dense, it can result in the user setting bits that were originally hidden from the user. We should not allow this behavior and throw an ArgumentException when Reshape is called in those situations and make sure we set the bits correctly to not touch the hidden bits. See #106539, #106537, and #106535.

Regression

  • Yes
  • No

Testing

More automated testing was added to cover the case of non-normal strides combined with slicing. It was missed because its an edge case that wasn't initially thought about.

Risk

Low risk as this is the first time 'Tensor" is being released, its going out in preview state, and we have an end user testing things out as well.

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

@ericstj @artl93

ericstj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM. Failures here are known. @artl93 can you have a look too?

ericstj added the Servicing-consider Issue for next servicing release review label Sep 26, 2024
ericstj added this to the 9.0.0 milestone Sep 26, 2024
ericstj added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Sep 30, 2024
ericstj merged commit 3d3a8ed into release/9.0 Sep 30, 2024
michaelgsharp deleted the backport/pr-107852-to-release/9.0 branch September 30, 2024 20:16
github-actions Bot locked and limited conversation to collaborators Oct 31, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL