* src/sftnt/ttpost.c (format): Use otspec-compliant versions.

This commit is contained in:
Alexei Podtelezhnikov 2017-08-08 21:42:37 -04:00
parent 986a21b73a
commit a9d8e90caf
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2017-08-08 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/sftnt/ttpost.c (format): Use otspec-compliant versions.
2017-06-27 Werner Lemberg <wl@gnu.org> 2017-06-27 Werner Lemberg <wl@gnu.org>
[truetype] Integer overflow. [truetype] Integer overflow.

View File

@ -407,7 +407,7 @@
/* now read postscript table */ /* now read postscript table */
if ( format == 0x00020000L ) if ( format == 0x00020000L )
error = load_format_20( face, stream, post_limit ); error = load_format_20( face, stream, post_limit );
else if ( format == 0x00028000L ) else if ( format == 0x00025000L )
error = load_format_25( face, stream, post_limit ); error = load_format_25( face, stream, post_limit );
else else
error = FT_THROW( Invalid_File_Format ); error = FT_THROW( Invalid_File_Format );
@ -446,7 +446,7 @@
FT_FREE( table->glyph_names ); FT_FREE( table->glyph_names );
table->num_names = 0; table->num_names = 0;
} }
else if ( format == 0x00028000L ) else if ( format == 0x00025000L )
{ {
TT_Post_25 table = &names->names.format_25; TT_Post_25 table = &names->names.format_25;
@ -542,7 +542,7 @@
*PSname = (FT_String*)table->glyph_names[name_index - 258]; *PSname = (FT_String*)table->glyph_names[name_index - 258];
} }
} }
else if ( format == 0x00028000L ) else if ( format == 0x00025000L )
{ {
TT_Post_25 table = &names->names.format_25; TT_Post_25 table = &names->names.format_25;