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:
Adrian Johnson 2024-04-27 21:39:13 +00:00
commit 27c8ad5cd8

View file

@ -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);