From 60e6e2af3653c34d33ede6a09c5080d8f0bdee87 Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Sun, 18 Aug 2024 07:16:18 -0700 Subject: [PATCH] llava : fix occasional undefined behavior crash --- examples/llava/clip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/llava/clip.cpp b/examples/llava/clip.cpp index 342042ffb..871325381 100644 --- a/examples/llava/clip.cpp +++ b/examples/llava/clip.cpp @@ -553,7 +553,7 @@ struct clip_ctx { ggml_backend_t backend = NULL; ggml_gallocr_t compute_alloc = NULL; - struct clip_image_size * load_image_size; + struct clip_image_size * load_image_size = NULL; }; static ggml_cgraph * clip_image_build_graph(clip_ctx * ctx, const clip_image_f32_batch * imgs, struct clip_image_size * load_image_size, bool is_inf = false) {