* src/sdf/ftsdf.c (sdf_generate_bounding_box): Fix allocation.

Reported in

  https://mail.gnu.org/archive/html/freetype-devel/2026-02/msg00005.html
This commit is contained in:
Werner Lemberg 2026-03-18 14:45:57 +01:00
parent 264b5fbf5b
commit bda1d87f69

View file

@ -3281,7 +3281,7 @@
goto Exit;
}
if ( FT_NEW_ARRAY( dists, bitmap->rows * bitmap->width ) )
if ( FT_ALLOC_MULT( dists, bitmap->rows, bitmap->width ) )
goto Exit;
contours = shape->contours;