yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Ashish Dhonepreprocessor: guard against OOB read in handlePragma for #pragma STDGL85e2c34c

16.5.0
294 B8 linesraw
1#version 450
2// Regression test: #pragma STDGL with fewer than 4 tokens must not OOB-read
3// tokens[1]/tokens[3] in handlePragma() — fixed by checking tokens.size() >= 4
4// before accessing them (ParseHelper.cpp).
5#pragma STDGL
6#pragma STDGL invariant
7#pragma STDGL invariant(
8void main() {}