Skip to content

Add check to detect OOB of Private/Function variables #12020

@spencer-lunarg

Description

@spencer-lunarg

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

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 
}

Metadata

Metadata

Labels

GPU-AVGPU Assisted Validation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions