1
0
mirror of https://github.com/freetype/freetype.git synced 2026-10-23 11:08:54 +03:00

[ttvarc] Fix leak on malformed variation indices.

Reported as

  https://issues.oss-fuzz.com/issues/554721572

* src/truetype/ttvarc.c (tt_varc_parse_component): Route variation-index
  parse failures through the common cleanup path so heap-allocated component
  axis values are released.
This commit is contained in:
Behdad Esfahbod
2026-09-05 20:26:14 -06:00
committed by Werner Lemberg
parent d443c9ddfb
commit bfa7cd237f

View File

@@ -836,7 +836,7 @@
{
error = read_uint32var( p, limit, &component->axis_values_var_index );
if ( error )
return error;
goto Fail;
}
/* read transform variation index */
@@ -844,7 +844,7 @@
{
error = read_uint32var( p, limit, &component->transform_var_index );
if ( error )
return error;
goto Fail;
}
/* initialize transform to identity */