]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ggml : fix memory leaks when loading invalid gguf files (#10094)
authorDiego Devesa <redacted>
Wed, 30 Oct 2024 13:51:21 +0000 (14:51 +0100)
committerGitHub <redacted>
Wed, 30 Oct 2024 13:51:21 +0000 (14:51 +0100)
commitb9e02e8184f5e6094a9e87eaf040becd404bfc90
tree9b208e13e155afbf7293c1693e9a145323c7d6e0
parent6763f713bb692910e9b2d9d1a82d6959cee2dcf3
ggml : fix memory leaks when loading invalid gguf files (#10094)

* ggml : fix gguf string leak when reading kv pairs fails

* ggml : avoid crashing with GGML_ABORT when the KV has an invalid type

* ggml : avoid crashing on failed memory allocations when loading a gguf file
ggml/src/ggml.c