]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
gguf : add input validation, prevent integer overflows (#709)
authorGeorgi Gerganov <redacted>
Mon, 29 Jan 2024 12:00:10 +0000 (14:00 +0200)
committerGitHub <redacted>
Mon, 29 Jan 2024 12:00:10 +0000 (14:00 +0200)
commitaec8550d966c82d3e6f10dd7de309afe5c424857
tree9fd48d7f314b5cd0dce6036c88ff4a5d8b163ff8
parentfde307255b9a81a6c1934377a362a20755975d78
gguf : add input validation, prevent integer overflows (#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
src/ggml.c