shithub: freetype+ttf2subf

Download patch

ref: ca6a5cf4b85db512402be7fa45a7b05f4e8baa60
parent: a82c45d53b6ba3e26c8be2e12dadc5a450e2b8f4
author: Werner Lemberg <[email protected]>
date: Mon Aug 3 04:51:18 EDT 2015

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

* src/base/ftrfork.c (FT_Raccess_Get_HeaderInfo): Fix inequality.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-08-03  Werner Lemberg  <[email protected]>
+
+	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  <[email protected]>
 
 	* CMakeLists.txt: Improve shared library support.
--- 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;