Fix typo in clang bug from 2015-07-31 (#45678).

* src/base/ftrfork.c (FT_Raccess_Get_HeaderInfo): Fix inequality.
2.6.5
Werner Lemberg 10 years ago
parent a82c45d53b
commit ca6a5cf4b8
  1. 6
      ChangeLog
  2. 4
      src/base/ftrfork.c

@ -1,3 +1,9 @@
2015-08-03 Werner Lemberg <wl@gnu.org>
Fix typo in clang bug from 2015-07-31 (#45678).
* src/base/ftrfork.c (FT_Raccess_Get_HeaderInfo): Fix inequality.
2015-08-02 Werner Lemberg <wl@gnu.org>
* CMakeLists.txt: Improve shared library support.

@ -93,8 +93,8 @@
if ( *rdata_pos != map_pos - rdata_len || map_pos == 0 )
return FT_THROW( Unknown_File_Format );
if ( FT_LONG_MAX - rfork_offset > *rdata_pos ||
FT_LONG_MAX - rfork_offset > map_pos )
if ( FT_LONG_MAX - rfork_offset < *rdata_pos ||
FT_LONG_MAX - rfork_offset < map_pos )
return FT_THROW( Unknown_File_Format );
*rdata_pos += rfork_offset;

Loading…
Cancel
Save