ggml/include
Georgi Gerganov 228be52c0a ggml/gguf : prevent integer overflows (llama/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-25 12:32:13 +02:00
..
ggml-alloc.h
ggml-backend.h
ggml-blas.h
ggml-cann.h docs : Minor cleanups (llama/19252) 2026-02-07 10:37:38 +02:00
ggml-cpp.h
ggml-cpu.h ggml-cpu: FA split across kv for faster TG (llama/19209) 2026-02-07 10:37:38 +02:00
ggml-cuda.h
ggml-hexagon.h
ggml-metal.h
ggml-opencl.h
ggml-opt.h
ggml-rpc.h
ggml-sycl.h
ggml-virtgpu.h ggml-virtgpu: make the code thread safe (llama/19204) 2026-02-07 10:37:38 +02:00
ggml-vulkan.h
ggml-webgpu.h
ggml-zdnn.h
ggml-zendnn.h
ggml.h ggml/gguf : prevent integer overflows (llama/19856) 2026-02-25 12:32:13 +02:00
gguf.h