]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
gguf : add input validation, prevent integer overflows (ggml/709)
authorGeorgi Gerganov <redacted>
Mon, 29 Jan 2024 12:00:10 +0000 (14:00 +0200)
committerGeorgi Gerganov <redacted>
Tue, 30 Jan 2024 14:20:25 +0000 (16:20 +0200)
commita4b07c057a553b1ac253051efc3f040351e2eae1
treecc389f12f618eff71e3d44547aec818e3de08226
parent549a1e6cd5b39fe0dc3d4ea5515c65f17797a31e
gguf : add input validation, prevent integer overflows (ggml/709)

* gguf : add input validation, prevent integer overflows

ggml-ci

* gguf : fix switch default case

* gguf : sanitize info->n_dims and info->type

ggml-ci

* gguf : assert GGUF_TYPE_SIZE access

ggml-ci

* ggml : assert mallocs are successful

ggml-ci

* gguf : prevent integer overflow

* gguf : sanitize tensor info

ggml-ci

* gguf : stricter limit on the number of items

ggml-ci
ggml.c