[cid] Fix parsing of subr offsets.

Bug introduced 2016-05-16.

* src/cid/cidparse.c (cid_parser_new): Fix off-by-one error.
Harmony
Werner Lemberg 8 years ago
parent fcc0ee80e1
commit d61b042568
  1. 8
      ChangeLog
  2. 3
      docs/CHANGES
  3. 4
      src/cid/cidparse.c

@ -1,3 +1,11 @@
2016-10-08 Werner Lemberg <wl@gnu.org>
[cid] Fix parsing of subr offsets.
Bug introduced 2016-05-16.
* src/cid/cidparse.c (cid_parser_new): Fix off-by-one error.
2016-10-01 Werner Lemberg <wl@gnu.org>
[sfnt] Disable bitmap strikes if we don't have a bitmap data table.

@ -6,6 +6,9 @@ CHANGES BETWEEN 2.7 and 2.7.1
II. IMPORTANT BUG FIXES
- Handling of raw CID fonts was partially broken (bug introduced
in 2.6.4).
III. MISCELLANEOUS

@ -138,13 +138,13 @@
ft_strncmp( (char*)p, STARTDATA, STARTDATA_LEN ) == 0 )
{
/* save offset of binary data after `StartData' */
offset += (FT_ULong)( p - buffer ) + STARTDATA_LEN;
offset += (FT_ULong)( p - buffer ) + STARTDATA_LEN + 1;
goto Found;
}
else if ( p[1] == 's' &&
ft_strncmp( (char*)p, SFNTS, SFNTS_LEN ) == 0 )
{
offset += (FT_ULong)( p - buffer ) + SFNTS_LEN;
offset += (FT_ULong)( p - buffer ) + SFNTS_LEN + 1;
goto Found;
}
}

Loading…
Cancel
Save