yum-mirror/glslang

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

Saddamfix oob read on empty array initializer in convertInitializerListbf84fe44

main
453 B12 linesraw
1#version 460
2#extension GL_EXT_null_initializer : enable
3
4// An empty initializer list ({}) is only valid as a whole null initializer.
5// When one appears nested as an array element initializer there are no elements
6// to size the array or derive its element type from, so it must be rejected
7// rather than reading past the empty initializer sequence.
8
9void main()
10{
11    int a[1][3] = { {} };    // ERROR, empty initializer list for an array element
12}