[cid] Fix parsing of subr offsets.

Bug introduced 2016-05-16.

* src/cid/cidparse.c (cid_parser_new): Fix off-by-one error.
This commit is contained in:
Werner Lemberg 2016-10-08 19:20:33 +02:00
parent fcc0ee80e1
commit d61b042568
3 changed files with 13 additions and 2 deletions

View File

@ -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.

View File

@ -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

View File

@ -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;
}
}