Commit a441474
fix: add integer overflow check for memory allocation in ggml-alloc.c
- Added overflow check for hash values allocation
- Prevents integer overflow in graph allocator
- Ensures safe memory allocation
Addresses integer overflow vulnerability (CWE-190)
Co-Authored-By: Jake Cosme <[email protected]>1 parent d6a35cc commit a441474
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
671 | 674 | | |
672 | 675 | | |
673 | 676 | | |
| |||
0 commit comments