diff -urN harfbuzz-8.4.0.old/src/hb-cff-interp-dict-common.hh harfbuzz-8.4.0/src/hb-cff-interp-dict-common.hh --- harfbuzz-8.4.0.old/src/hb-cff-interp-dict-common.hh 2024-03-29 20:03:04.000000000 +0530 +++ harfbuzz-8.4.0/src/hb-cff-interp-dict-common.hh 2024-08-16 14:53:09.265168054 +0530 @@ -84,7 +84,7 @@ enum Nibble { DECIMAL=10, EXP_POS, EXP_NEG, RESERVED, NEG, END }; - char buf[32]; + char buf[32] = {0}; unsigned char byte = 0; for (unsigned i = 0, count = 0; count < ARRAY_LENGTH (buf); ++i, ++count) { diff -urN harfbuzz-8.4.0.old/test/api/test-font.c harfbuzz-8.4.0/test/api/test-font.c --- harfbuzz-8.4.0.old/test/api/test-font.c 2024-03-29 20:03:04.000000000 +0530 +++ harfbuzz-8.4.0/test/api/test-font.c 2024-08-16 14:53:09.266168070 +0530 @@ -417,7 +417,7 @@ font2 = hb_font_create_sub_font (font1); hb_font_destroy (font1); ffuncs2 = hb_font_funcs_create (); - hb_font_funcs_set_nominal_glyphs_func (ffuncs1, nominal_glyphs_func, NULL, NULL); + hb_font_funcs_set_nominal_glyphs_func (ffuncs2, nominal_glyphs_func, NULL, NULL); hb_font_set_funcs (font2, ffuncs2, NULL, NULL); hb_font_funcs_destroy (ffuncs2); diff -urN harfbuzz-8.4.0.old/util/hb-subset.cc harfbuzz-8.4.0/util/hb-subset.cc --- harfbuzz-8.4.0.old/util/hb-subset.cc 2024-03-29 20:03:04.000000000 +0530 +++ harfbuzz-8.4.0/util/hb-subset.cc 2024-08-16 14:53:09.267168086 +0530 @@ -792,6 +792,7 @@ g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_FAILED, "Failed reading file `%s': %s", arg, strerror (errno)); + fclose(fp); return false; } g_string_append_c (gs, '\0'); @@ -812,6 +813,8 @@ g_string_free (gs, false); + fclose(fp); + return true; }