Georgi Gerganov
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
..
2026-01-16 11:22:06 +01:00
2025-12-03 12:45:32 +02:00
2026-02-09 07:12:02 +01:00
2024-01-26 14:18:00 +02:00
2024-01-26 14:18:00 +02:00
2025-05-02 20:27:13 +02:00
2025-10-03 13:49:08 +02:00
2026-01-14 07:46:27 +01:00
2026-02-02 08:38:55 +02:00
2026-02-19 20:08:25 -06:00
2026-02-23 17:12:02 +01:00
2025-12-10 12:32:23 -08:00
2025-07-03 07:48:32 +03:00
2026-01-20 18:23:25 +01:00
2026-01-20 18:23:25 +01:00
2026-01-29 14:06:54 +01:00
2026-02-20 23:22:22 +01:00
2024-07-12 10:46:02 +03:00
2025-04-24 16:00:10 +03:00
2026-02-24 20:17:11 +02:00
2025-12-09 00:32:57 -06:00
2025-12-22 11:00:37 +01:00
2025-12-09 00:32:57 -06:00
2026-02-22 21:08:23 +01:00
2025-10-12 16:18:47 +03:00
2025-12-16 04:05:23 -06:00
2025-12-09 00:32:57 -06:00
2024-10-10 22:57:42 +02:00
2025-12-10 15:28:59 +01:00
2025-01-06 10:55:18 +02:00
2025-05-04 23:43:42 +02:00
2025-08-26 22:14:38 +02:00
2025-12-03 12:45:32 +02:00
2025-03-10 14:07:15 +02:00
2025-09-25 08:06:06 +03:00
2025-12-01 19:41:04 +01:00
2026-01-03 16:02:43 -06:00
2025-11-11 13:33:24 +02:00
2025-08-31 20:41:02 +03:00
2025-12-15 19:28:35 +02:00
2025-11-02 18:14:04 +02:00
2025-12-22 11:00:37 +01:00
2024-05-05 08:07:48 +03:00
2025-06-30 10:17:18 +02:00
2025-12-22 11:00:37 +01:00
2025-12-22 11:00:37 +01:00
2025-09-09 06:06:52 +02:00
2025-09-27 02:03:33 +08:00
2026-01-16 11:22:06 +01:00