-
Notifications
You must be signed in to change notification settings - Fork 787
[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
Conversation
Signed-off-by: Wu, Yingcong <[email protected]>
There was a problem hiding this 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
Hi @intel/llvm-gatekeepers , this PR is ready to merge, thanks. |
It looks like this is breaking the UR CTS pre-commit, see: |
This reverts commit 65cf13e.
Yes, I will open a PR to address this problem promptly. |
PR open: #18408 |
Thank you @npmiller for reporting this. I really appreciate it. |
The
WorkDim
is not respected in the process, leading to an OOB access whenWorkDim < 3
.