mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-03 19:50:17 +01:00
Merge branch '838-confidential-issue' into 'master'
Switch to calloc in _cairo_cff_font_fallback_create Closes #838 See merge request cairo/cairo!545
This commit is contained in:
commit
27c8ad5cd8
1 changed files with 1 additions and 1 deletions
|
|
@ -3160,7 +3160,7 @@ _cairo_cff_font_fallback_create (cairo_scaled_font_subset_t *scaled_font_subset
|
|||
cairo_status_t status;
|
||||
cairo_cff_font_t *font;
|
||||
|
||||
font = _cairo_malloc (sizeof (cairo_cff_font_t));
|
||||
font = calloc (1, sizeof (cairo_cff_font_t));
|
||||
if (unlikely (font == NULL))
|
||||
return _cairo_error (CAIRO_STATUS_NO_MEMORY);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue