Fix Savannah bug #41590.

* src/type1/t1load.c (parse_encoding): Protect against invalid
number.
This commit is contained in:
Simon Bünzli 2014-02-19 08:42:52 +01:00 committed by Werner Lemberg
parent cc9a0c26af
commit df14e6c0b9
2 changed files with 14 additions and 0 deletions

View File

@ -4,6 +4,13 @@
* src/autofit/hbshim.c: Include `afglobal.h' and `aftypes.h'.
2014-02-19 Simon Bünzli <zeniko@gmail.com>
Fix Savannah bug #41590.
* src/type1/t1load.c (parse_encoding): Protect against invalid
number.
2014-02-12 Dave Arnold <darnold@adobe.com>
[cff] Optimize by using `FT_MulDiv'.

View File

@ -1274,6 +1274,13 @@
{
charcode = (FT_Int)T1_ToInt( parser );
T1_Skip_Spaces( parser );
/* protect against invalid charcode */
if ( cur == parser->root.cursor )
{
parser->root.error = FT_THROW( Unknown_File_Format );
return;
}
}
cur = parser->root.cursor;