Commit b551658
fix: add integer overflow checks for realloc in ggml_backend_sched_split_graph
- Added overflow check before splits reallocation
- Added overflow check before graph nodes/leafs reallocation
- Ensures safe memory reallocation for scheduler operations
- Prevents integer overflow in dynamic memory growth
Addresses integer overflow vulnerability (CWE-190)
Co-Authored-By: Jake Cosme <[email protected]>1 parent da5b6cf commit b551658
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1194 | 1194 | | |
1195 | 1195 | | |
1196 | 1196 | | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
1197 | 1202 | | |
1198 | 1203 | | |
1199 | 1204 | | |
| |||
1284 | 1289 | | |
1285 | 1290 | | |
1286 | 1291 | | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
1287 | 1297 | | |
1288 | 1298 | | |
1289 | 1299 | | |
| |||
0 commit comments