* src/winfonts/winfnt.c (FNT_Load_Glyph): Fix bitmap width guard.

2.6.5
Werner Lemberg 12 years ago
parent b8850fc1fd
commit 680c1d408f
  1. 4
      ChangeLog
  2. 2
      src/winfonts/winfnt.c

@ -1,3 +1,7 @@
2013-06-27 Werner Lemberg <wl@gnu.org>
* src/winfonts/winfnt.c (FNT_Load_Glyph): Fix bitmap width guard.
2013-06-25 Werner Lemberg <wl@gnu.org>
[cff] Add darkening limit to `darkening-parameters'.

@ -1024,7 +1024,7 @@
bitmap->rows = font->header.pixel_height;
bitmap->pixel_mode = FT_PIXEL_MODE_MONO;
if ( offset + pitch * bitmap->rows >= font->header.file_size )
if ( offset + pitch * bitmap->rows > font->header.file_size )
{
FT_TRACE2(( "invalid bitmap width\n" ));
error = FT_THROW( Invalid_File_Format );

Loading…
Cancel
Save