* src/cid/cidload.c (cid_face_open): Improve handling of `SDBytes'.
This commit is contained in:
parent
3c61a2f51d
commit
57aa83911a
@ -1,3 +1,7 @@
|
||||
2016-08-26 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* src/cid/cidload.c (cid_face_open): Improve handling of `SDBytes'.
|
||||
|
||||
2016-08-26 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[cid] Fix commit from 2016-05-16.
|
||||
|
@ -777,7 +777,8 @@
|
||||
CID_FaceDict dict = cid->font_dicts + n;
|
||||
|
||||
|
||||
if ( dict->sd_bytes < 0 )
|
||||
if ( dict->sd_bytes < 0 ||
|
||||
( dict->num_subrs && dict->sd_bytes < 1 ) )
|
||||
{
|
||||
FT_ERROR(( "cid_parse_dict: Invalid `SDBytes' value\n" ));
|
||||
error = FT_THROW( Invalid_File_Format );
|
||||
|
Loading…
Reference in New Issue
Block a user