Commit 0c5b4fb
fix: add null pointer checks for fopen calls in vulkan-shaders-gen.cpp
- Add null checks for fopen calls in write_output_files function
- Prevents null pointer dereference vulnerabilities
Addresses 2 null pointer dereference vulnerabilities (CWE-476)
Co-Authored-By: Jake Cosme <[email protected]>1 parent 680d493 commit 0c5b4fb
1 file changed
+9
-0
lines changedLines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
752 | 752 | | |
753 | 753 | | |
754 | 754 | | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
755 | 759 | | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
756 | 765 | | |
757 | 766 | | |
758 | 767 | | |
| |||
0 commit comments