* src/svg/ftsvg.c: Use FT_ALLOC_MULT.

Fixes #1378.
This commit is contained in:
Alexei Podtelezhnikov 2026-01-22 09:07:12 -05:00
parent 95db5da7c6
commit 83f543a82b

View file

@ -108,8 +108,6 @@
FT_Memory memory = library->memory;
FT_Error error;
FT_ULong size_image_buffer;
SVG_RendererHooks hooks = svg_renderer->hooks;
@ -135,10 +133,10 @@
ft_svg_preset_slot( (FT_Module)renderer, slot, TRUE );
size_image_buffer = (FT_ULong)slot->bitmap.pitch * slot->bitmap.rows;
/* No `FT_QALLOC` here since we need a clean, empty canvas */
/* to start with. */
if ( FT_ALLOC( slot->bitmap.buffer, size_image_buffer ) )
/* No `FT_QALLOC_MULT` here since we need a clean, empty canvas */
/* to start with. */
if ( FT_ALLOC_MULT( slot->bitmap.buffer,
slot->bitmap.rows, slot->bitmap.pitch ) )
return error;
error = hooks.render_svg( slot, &svg_renderer->state );