]> git.djapps.eu Git - pkg/ggml/sources/whisper.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 19:27:58 +0000 (21:27 +0200)
commit8f5220d81fad6db7f221f3d977b15b8b493641f3
treed82bc26e42a9f427c7a1937b6a805f4869ffd7b1
parent8e391fcf3a7582a64f7adf6f95f7e87177d79e6e
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