yum-mirror/glslang

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

Saddamfix oob read on empty entryPoints in postProcessFeatures3c14556a

main
2.5 KiB53 linesraw
1spv.WorkgroupMemoryExplicitLayout.NoLink.comp
2Validation failed
3// Module Version 10400
4// Generated by (magic number): 8000b
5// Id's are bound by 24
6
7                              Capability Shader
8                              Capability Linkage
9                              Capability WorkgroupMemoryExplicitLayoutKHR
10                              Extension  "SPV_KHR_workgroup_memory_explicit_layout"
11               1:             ExtInstImport  "GLSL.std.450"
12                              MemoryModel Logical GLSL450
13                              Source GLSL 430
14                              SourceExtension  "GL_EXT_shared_memory_block"
15                              Name 4  "notMain("
16                              Name 7  "first"
17                              MemberName 7(first) 0  "a"
18                              Name 9  ""
19                              Name 14  "second"
20                              MemberName 14(second) 0  "b"
21                              Name 16  ""
22                              Decorate 4(notMain() Linkage Attributes 1299476334 7235937 0
23                              Decorate 7(first) Block
24                              MemberDecorate 7(first) 0 Offset 0
25                              Decorate 14(second) Block
26                              MemberDecorate 14(second) 0 Offset 0
27                              Decorate 23 BuiltIn WorkgroupSize
28               2:             TypeVoid
29               3:             TypeFunction 2
30               6:             TypeInt 32 1
31        7(first):             TypeStruct 6(int)
32               8:             TypePointer Workgroup 7(first)
33               9:      8(ptr) Variable Workgroup
34              10:      6(int) Constant 0
35              11:      6(int) Constant 2
36              12:             TypePointer Workgroup 6(int)
37      14(second):             TypeStruct 6(int)
38              15:             TypePointer Workgroup 14(second)
39              16:     15(ptr) Variable Workgroup
40              17:      6(int) Constant 3
41              19:             TypeInt 32 0
42              20:             TypeVector 19(int) 3
43              21:     19(int) Constant 8
44              22:     19(int) Constant 1
45              23:   20(ivec3) ConstantComposite 21 22 22
46     4(notMain():           2 Function None 3
47               5:             Label
48              13:     12(ptr) AccessChain 9 10
49                              Store 13 11
50              18:     12(ptr) AccessChain 16 10
51                              Store 18 17
52                              Return
53                              FunctionEnd