You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DxilFixConstArrayInitializer can index OOB when const array init stores use negative index #6824
Description
In a debug build, the compiler crashes on this compute shader:
groupshared float4 w;
[numthreads(1, 1, 1)]
void b() {
int i = -1;
w[i] = 0;
}
Steps to Reproduce
Compile via: dxc -T cs_6_0 -E b a.hlsl
Actual Behavior
The compiler should not crash.
The shader is doing an OOB access which is undefined behaviour, so it doesn't matter what the resulting shader does.
Activity
Avoid OOB index when fixing constant array-initialization
Avoid OOB index when fixing constant array-initialization (microsoft#…
Avoid OOB index when fixing constant array-initialization (microsoft#…