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

* src/base/ftrfork.c (FT_Raccess_Get_HeaderInfo): Fix inequality.
This commit is contained in:
Werner Lemberg 2015-08-03 08:51:18 +02:00
parent a82c45d53b
commit ca6a5cf4b8
2 changed files with 8 additions and 2 deletions

View File

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

View File

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