Skip to content

Commit 11ebe2d

Browse files
committed
Fix problems with uninitialized memory.
1 parent fba8daf commit 11ebe2d

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

tectonic/xetexini.c

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4398,33 +4398,33 @@ tt_run_engine(char *dump_name, char *input_file_name)
43984398
trie_ptr = 0;
43994399
trie_r[0] = 0;
44004400
hyph_start = 0;
4401-
font_mapping = xmalloc_array(void *, font_max);
4402-
font_layout_engine = xmalloc_array(void *, font_max);
4403-
font_flags = xmalloc_array(char, font_max);
4404-
font_letter_space = xmalloc_array(scaled_t, font_max);
4405-
font_check = xmalloc_array(b16x4, font_max);
4406-
font_size = xmalloc_array(scaled_t, font_max);
4407-
font_dsize = xmalloc_array(scaled_t, font_max);
4408-
font_params = xmalloc_array(font_index, font_max);
4409-
font_name = xmalloc_array(str_number, font_max);
4410-
font_area = xmalloc_array(str_number, font_max);
4411-
font_bc = xmalloc_array(UTF16_code, font_max);
4412-
font_ec = xmalloc_array(UTF16_code, font_max);
4413-
font_glue = xmalloc_array(int32_t, font_max);
4414-
hyphen_char = xmalloc_array(int32_t, font_max);
4415-
skew_char = xmalloc_array(int32_t, font_max);
4416-
bchar_label = xmalloc_array(font_index, font_max);
4417-
font_bchar = xmalloc_array(nine_bits, font_max);
4418-
font_false_bchar = xmalloc_array(nine_bits, font_max);
4419-
char_base = xmalloc_array(int32_t, font_max);
4420-
width_base = xmalloc_array(int32_t, font_max);
4421-
height_base = xmalloc_array(int32_t, font_max);
4422-
depth_base = xmalloc_array(int32_t, font_max);
4423-
italic_base = xmalloc_array(int32_t, font_max);
4424-
lig_kern_base = xmalloc_array(int32_t, font_max);
4425-
kern_base = xmalloc_array(int32_t, font_max);
4426-
exten_base = xmalloc_array(int32_t, font_max);
4427-
param_base = xmalloc_array(int32_t, font_max);
4401+
font_mapping = xcalloc_array(void *, font_max);
4402+
font_layout_engine = xcalloc_array(void *, font_max);
4403+
font_flags = xcalloc_array(char, font_max);
4404+
font_letter_space = xcalloc_array(scaled_t, font_max);
4405+
font_check = xcalloc_array(b16x4, font_max);
4406+
font_size = xcalloc_array(scaled_t, font_max);
4407+
font_dsize = xcalloc_array(scaled_t, font_max);
4408+
font_params = xcalloc_array(font_index, font_max);
4409+
font_name = xcalloc_array(str_number, font_max);
4410+
font_area = xcalloc_array(str_number, font_max);
4411+
font_bc = xcalloc_array(UTF16_code, font_max);
4412+
font_ec = xcalloc_array(UTF16_code, font_max);
4413+
font_glue = xcalloc_array(int32_t, font_max);
4414+
hyphen_char = xcalloc_array(int32_t, font_max);
4415+
skew_char = xcalloc_array(int32_t, font_max);
4416+
bchar_label = xcalloc_array(font_index, font_max);
4417+
font_bchar = xcalloc_array(nine_bits, font_max);
4418+
font_false_bchar = xcalloc_array(nine_bits, font_max);
4419+
char_base = xcalloc_array(int32_t, font_max);
4420+
width_base = xcalloc_array(int32_t, font_max);
4421+
height_base = xcalloc_array(int32_t, font_max);
4422+
depth_base = xcalloc_array(int32_t, font_max);
4423+
italic_base = xcalloc_array(int32_t, font_max);
4424+
lig_kern_base = xcalloc_array(int32_t, font_max);
4425+
kern_base = xcalloc_array(int32_t, font_max);
4426+
exten_base = xcalloc_array(int32_t, font_max);
4427+
param_base = xcalloc_array(int32_t, font_max);
44284428
font_ptr = FONT_BASE;
44294429
fmem_ptr = 7;
44304430
font_name[FONT_BASE] = maketexstring("nullfont");

0 commit comments

Comments
 (0)