[type1, type42] Fix Savannah bug #43655.

* src/type1/t1load.c (parse_charstrings), src/type42/t42parse.c
(t42_parse_charstrings): Fix boundary testing.
2.6.5
Werner Lemberg 10 years ago
parent b1fc00d5dc
commit dd89710f0f
  1. 7
      ChangeLog
  2. 2
      src/type1/t1load.c
  3. 2
      src/type42/t42parse.c

@ -1,3 +1,10 @@
2014-11-21 Werner Lemberg <wl@gnu.org>
[type1, type42] Fix Savannah bug #43655.
* src/type1/t1load.c (parse_charstrings), src/type42/t42parse.c
(t42_parse_charstrings): Fix boundary testing.
2014-11-21 Werner Lemberg <wl@gnu.org>
* src/pcf/pcfread.c (pcf_get_metrics): Sanitize invalid metrics.

@ -1604,7 +1604,7 @@
FT_PtrDist len;
if ( cur + 1 >= limit )
if ( cur + 2 >= limit )
{
error = FT_THROW( Invalid_File_Format );
goto Fail;

@ -858,7 +858,7 @@
FT_PtrDist len;
if ( cur + 1 >= limit )
if ( cur + 2 >= limit )
{
FT_ERROR(( "t42_parse_charstrings: out of bounds\n" ));
error = FT_THROW( Invalid_File_Format );

Loading…
Cancel
Save