From ca6a5cf4b85db512402be7fa45a7b05f4e8baa60 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Mon, 3 Aug 2015 08:51:18 +0200 Subject: [PATCH] Fix typo in clang bug from 2015-07-31 (#45678). * src/base/ftrfork.c (FT_Raccess_Get_HeaderInfo): Fix inequality. --- ChangeLog | 6 ++++++ src/base/ftrfork.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7b35ece10..58c61ac32 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-08-03 Werner Lemberg + + 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 * CMakeLists.txt: Improve shared library support. diff --git a/src/base/ftrfork.c b/src/base/ftrfork.c index 702f639af..c30c76678 100644 --- a/src/base/ftrfork.c +++ b/src/base/ftrfork.c @@ -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;