* src/cid/cidload.c (cid_face_open): Improve handling of `SDBytes'.

Harmony
Werner Lemberg 8 years ago
parent 3c61a2f51d
commit 57aa83911a
  1. 4
      ChangeLog
  2. 3
      src/cid/cidload.c

@ -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…
Cancel
Save