Skip to content

[UR][L0 Adapter] Fix an OOB access #18373

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

Open
wants to merge 1 commit into
base: sycl
Choose a base branch
from

Conversation

yingcong-wu
Copy link
Contributor

@yingcong-wu yingcong-wu commented May 9, 2025

The WorkDim is not respected in the process, leading to an OOB access when WorkDim < 3.

Signed-off-by: Wu, Yingcong <[email protected]>
@yingcong-wu yingcong-wu requested a review from a team as a code owner May 9, 2025 04:04
@yingcong-wu yingcong-wu changed the title respect workdim [UR][L0 Adapter] Fix a OOB access bug May 9, 2025
@yingcong-wu yingcong-wu changed the title [UR][L0 Adapter] Fix a OOB access bug [UR][L0 Adapter] Fix an OOB access May 9, 2025
@yingcong-wu yingcong-wu requested a review from Copilot May 9, 2025 04:12
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses an out-of-bound access issue where WorkDim values less than 3 were not being correctly handled.

  • Replaces multiple fixed-index assertions and assignments with a loop that iterates over WorkDim
  • Ensures that only valid dimensions are processed to prevent out-of-bound access

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants