[cff] Fix compiler warning (#55105).

* src/cff/cffparse.c (cff_parser_run): Guard label only used if
CFF_CONFIG_OPTION_OLD_ENGINE is active.
This commit is contained in:
Ben Wagner 2018-11-27 18:02:44 +01:00 committed by Werner Lemberg
parent 74cdd75f6f
commit 1fc6937f7f
2 changed files with 10 additions and 1 deletions

View File

@ -1,6 +1,13 @@
2018-11-27 Ben Wagner <bungeman@google.com>
[truetype Fix numeric overflow (#55103).
[cff] Fix compiler warning (#55105).
* src/cff/cffparse.c (cff_parser_run): Guard label only used if
CFF_CONFIG_OPTION_OLD_ENGINE is active.
2018-11-27 Ben Wagner <bungeman@google.com>
[truetype] Fix numeric overflow (#55103).
* src/truetype/ttgload.c (compute_glyph_metrics): Use `SUB_LONG'.

View File

@ -1534,9 +1534,11 @@
#endif
return error;
#ifdef CFF_CONFIG_OPTION_OLD_ENGINE
Out_Of_Memory_Error:
error = FT_THROW( Out_Of_Memory );
goto Exit;
#endif
Stack_Overflow:
error = FT_THROW( Invalid_Argument );