Skip to content

[JSEP] Fix inputShape index OOB in slice.ts #25364

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

Merged
merged 1 commit into from
Jul 11, 2025
Merged

Conversation

jchen10
Copy link
Contributor

@jchen10 jchen10 commented Jul 11, 2025

Use inputShape.length - 1 instead of inputShape.length to avoid out-of-bounds access.

Use `inputShape.length - 1` instead of `inputShape.length` to avoid
out-of-bounds access.
@jchen10
Copy link
Contributor Author

jchen10 commented Jul 11, 2025

Thanks to @Jiawei-Shao. He happened to catch this bug. I just fix it for him in passing.

@fs-eire @guschmue PTAL

@fs-eire
Copy link
Contributor

fs-eire commented Jul 11, 2025

/azp run Linux QNN CI Pipeline, Win_TRT_Minimal_CUDA_Test_CI, Windows ARM64 QNN CI Pipeline, Windows GPU Doc Gen CI Pipeline, Windows x64 QNN CI Pipeline

Copy link

Azure Pipelines successfully started running 5 pipeline(s).

@fs-eire fs-eire merged commit a532c8a into microsoft:main Jul 11, 2025
85 checks passed
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