Fix Savannah bug #41590.
* src/type1/t1load.c (parse_encoding): Protect against invalid number.
This commit is contained in:
parent
cc9a0c26af
commit
df14e6c0b9
@ -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'.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user