mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-05 20:50:24 +01:00
parent
39ba22d7e6
commit
f19e2fe080
1 changed files with 7 additions and 3 deletions
|
|
@ -952,9 +952,13 @@ cairo_cff_font_read_private_dict (cairo_cff_font_t *font,
|
|||
decode_number (operand, nominal_width);
|
||||
|
||||
num_subs = _cairo_array_num_elements (local_sub_index);
|
||||
*local_subs_used = _cairo_calloc_ab (num_subs, sizeof (cairo_bool_t));
|
||||
if (unlikely (*local_subs_used == NULL))
|
||||
return _cairo_error (CAIRO_STATUS_NO_MEMORY);
|
||||
if (num_subs > 0) {
|
||||
*local_subs_used = _cairo_calloc_ab (num_subs, sizeof (cairo_bool_t));
|
||||
if (unlikely (*local_subs_used == NULL))
|
||||
return _cairo_error (CAIRO_STATUS_NO_MEMORY);
|
||||
} else {
|
||||
*local_subs_used = NULL;
|
||||
}
|
||||
|
||||
if (num_subs < 1240)
|
||||
*local_sub_bias = 107;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue