Skip to content

Conversation

alsepkow
Copy link
Contributor

@alsepkow alsepkow commented Jul 12, 2025

Fixes #5198.

ExecutionTests::AtomicsShared64Test could sporadically fail.

g_sint64Share is indexed with ix%3 + 1, which could lead to an out of bounds access.
Increase the size of g_sint64Share to 4 and ensure all values are initialized.

@alsepkow alsepkow changed the title Fix shader source to prevent OOB access for ExecutionTests::AtomicsShared64Test [ExecutionTests] Fix shader source to prevent OOB access for ExecutionTests::AtomicsShared64Test Jul 12, 2025
@alsepkow
Copy link
Contributor Author

I lost access to a machine with a reliable repro. But I did validate that the test still passes with this change on another machine with the updated shader source.

@alsepkow alsepkow merged commit 5ceaf84 into microsoft:main Jul 22, 2025
12 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in HLSL Roadmap Jul 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Out of bounds groupshared array index in ExecutionTest::AtomicsShared64Test
5 participants