
Georgi GerganovandSigbjørn Skjæret
418dea39ce
ggml/gguf : prevent integer overflows (#19856)
* gguf : prevent integer overflow for ggml_context mem size
* ggml : fix int overflows in ggml_new_object()
* gguf : prevent string exhaustion
* gguf : prevent array elements exhaustion
* ggml : fix negative tensor type oob
* py : assert that alignment is non-zero power of 2
* ggml : check int overflow in ggml_new_tensor_impl and ggml_new_object
* gguf-py : error on duplicate keys when reading
* py : restore tensor_fields
* enforce proper alignment in add_custom_alignment
* gguf : better name
* gguf : fix ctx size for no_alloc == true
* gguf : minor print fix
* ggml : print values when overflow
* ggml : remove deprecated ggml_type_sizef()
* ggml : relax ggml_type asserts to debug-only
* gguf : add mem_size overflow test
* gguf : add file size check for arrays
* ggml : relax asseerts for ggml_get_type_traits()
* flake8 fix
---------
Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>
2026-02-24 20:17:11 +02:00
..
2025-11-28 20:53:01 +01:00
2024-07-18 20:40:15 +10:00
2026-02-19 17:05:25 +01:00
2026-02-24 20:17:11 +02:00
2026-02-24 20:17:11 +02:00
2023-11-11 08:04:50 +03:00
2025-11-09 09:45:50 -05:00
2025-11-25 09:56:07 +08:00
2023-08-30 11:25:50 +03:00
2025-08-08 17:48:26 -04:00
2026-02-19 17:05:25 +01:00
2025-12-22 20:25:16 +01:00
2025-12-03 21:15:04 +01:00