[truetype] Fix commit from 2015-10-10.

* src/truetype/ttgxvar.c (ft_var_load_gvar): Add missing error
handling body to condition.
This commit is contained in:
Werner Lemberg 2015-10-13 07:13:56 +02:00
parent b9880aa0f8
commit f96094eef0
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2015-10-13 Werner Lemberg <wl@gnu.org>
[truetype] Fix commit from 2015-10-10.
* src/truetype/ttgxvar.c (ft_var_load_gvar): Add missing error
handling body to condition.
2015-10-12 Werner Lemberg <wl@gnu.org> 2015-10-12 Werner Lemberg <wl@gnu.org>
[unix] Make MKDIR_P actually work. [unix] Make MKDIR_P actually work.

View File

@ -489,6 +489,11 @@
/* and a single variation needs at least 4 bytes per glyph */ /* and a single variation needs at least 4 bytes per glyph */
if ( (FT_ULong)gvar_head.glyphCount * if ( (FT_ULong)gvar_head.glyphCount *
( ( gvar_head.flags & 1 ) ? 8 : 6 ) > table_len ) ( ( gvar_head.flags & 1 ) ? 8 : 6 ) > table_len )
{
FT_TRACE1(( "ft_var_load_gvar: invalid number of glyphs\n" ));
error = FT_THROW( Invalid_Table );
goto Exit;
}
FT_TRACE2(( "loaded\n" )); FT_TRACE2(( "loaded\n" ));