Commit 3baffd2
fix: add integer overflow checks for memory allocation in ggml-vulkan.cpp
- Added overflow checks for test buffer allocations
- Prevents integer overflow in matmul test code
- Ensures safe memory allocation for X, Y, and D buffers
Addresses integer overflow vulnerabilities (CWE-190)
Co-Authored-By: Jake Cosme <[email protected]>1 parent a441474 commit 3baffd2
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9385 | 9385 | | |
9386 | 9386 | | |
9387 | 9387 | | |
| 9388 | + | |
| 9389 | + | |
| 9390 | + | |
9388 | 9391 | | |
| 9392 | + | |
| 9393 | + | |
| 9394 | + | |
| 9395 | + | |
9389 | 9396 | | |
| 9397 | + | |
| 9398 | + | |
| 9399 | + | |
| 9400 | + | |
9390 | 9401 | | |
9391 | 9402 | | |
9392 | 9403 | | |
| |||
0 commit comments