Skip to content

b3464

Compare
Choose a tag to compare
@github-actions github-actions released this 25 Jul 22:31
49ce0ab
ggml: handle ggml_init failure to fix NULL pointer deref (#8692)

`ggml_init` can fail if no unused context is found. In that case, a NULL-pointer deref will happen later in the code during a call to `ggml_set_on_alloc`.

This fixes it by bailing out if no context is found.