KhronosGroup / KhronosGroup/Vulkan-ValidationLayers

Add check to detect OOB of Private/Function variables

Open
#12,020 5 comments 0 reactions 1 assignee Claimed by @spencer-lunarg View on GitHub
GPU-AV
Dominant language
C++
Stars
1k
Forks
504
Avg merge
11h 35m
Merged PRs (30d)
224

Description

The following is currently not being caught in GPU-AV and should

```glsl
const float myLut[40] = { /* array initializers... */ };
const int INVALID_LUT_INDEX = 63;

float func(int index) {
return myLut[index];
}

void main() {
/* lots of stuff */
float thing = func(lutIndex); // lutIndex might be INVALID_LUT_INDEX
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.