[truetype] Better protection against malformed GX data (#46166).

* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Correctly
handle empty `localpoints' array.
This commit is contained in:
Werner Lemberg 2015-10-10 08:13:04 +02:00
parent d353f6e012
commit c220d8b498
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2015-10-10 Werner Lemberg <wl@gnu.org>
[truetype] Better protection against malformed GX data (#46166).
* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Correctly
handle empty `localpoints' array.
2015-10-10 Werner Lemberg <wl@gnu.org>
* src/pcf/pcfread.c (pcf_read_TOC): Check stream size (#46162).

View File

@ -1950,6 +1950,9 @@
#endif
}
else if ( localpoints == NULL )
; /* failure, ignore it */
else
{
#ifdef FT_DEBUG_LEVEL_TRACE