]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
mtmd : fix uninitialized variable in bicubic_resize (#16275)
authorAleksei Nikiforov <redacted>
Fri, 26 Sep 2025 13:00:44 +0000 (15:00 +0200)
committerGitHub <redacted>
Fri, 26 Sep 2025 13:00:44 +0000 (15:00 +0200)
Signed-off-by: Aaron Teo <redacted>
Co-authored-by: Aaron Teo <redacted>
tools/mtmd/clip.cpp

index 61420193daef0a489067b9cbdc64c9c67e584ded..210ecc883f80792cff4d3e5c0991fa6a27e0e605 100644 (file)
@@ -3067,7 +3067,7 @@ struct image_manipulation {
         dst.buf.resize(3 * target_width * target_height);
 
         float Cc;
-        float C[5];
+        float C[5] = {};
         float d0, d2, d3, a0, a1, a2, a3;
         int i, j, k, jj;
         int x, y;