Commit f231693
fix: add overflow check for tensor memory allocation in gguf.cpp
- gguf_init_from_file: Add bounds checking before multiplying n_tensors by ggml_tensor_overhead()
Addresses 3 integer overflow vulnerabilities (CWE-190)
Co-Authored-By: Jake Cosme <[email protected]>1 parent 577c235 commit f231693
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
652 | 657 | | |
653 | 658 | | |
654 | 659 | | |
| |||
0 commit comments