[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:
parent
b9880aa0f8
commit
f96094eef0
|
@ -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>
|
||||
|
||||
[unix] Make MKDIR_P actually work.
|
||||
|
|
|
@ -489,6 +489,11 @@
|
|||
/* and a single variation needs at least 4 bytes per glyph */
|
||||
if ( (FT_ULong)gvar_head.glyphCount *
|
||||
( ( 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" ));
|
||||
|
||||
|
|
Loading…
Reference in New Issue