Commit c9780ae
Fix Vulkan PBR pipeline stack smash (fragment spec map entries)
ADD_FRAG_SPEC appended 41 VkSpecializationMapEntry values but spec_entries
was only 38 slots with USE_VK_PBR, corrupting the stack canary and aborting
after VarInfo during vk_create_pipelines. Enlarge to 48 with headroom and
add a fatal overflow guard.
Co-authored-by: Tim Fox <timfox@outlook.com>1 parent 3d2a64a commit c9780ae
2 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
70 | 71 | | |
71 | | - | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
817 | 818 | | |
818 | 819 | | |
819 | 820 | | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
820 | 826 | | |
821 | 827 | | |
822 | 828 | | |
| |||
0 commit comments