shithub: freetype+ttf2subf

Download patch

ref: 68e16e010534bbb32e29d719864fbedde5c0a2a1
parent: 9d83d290287d6c844a7fe514050604cd75a76b3a
author: Suzuki, Toshiya (鈴木俊哉) <mpsuzuki@hiroshima-u.ac.jp>
date: Fri Jan 9 03:01:15 EST 2009

* src/gxvalid/gxvmort.c (gxv_mort_feature_validate): Fix wrong length check, Savannah patch #6682.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-01-09  Daniel Zimmermann  <netzimme@aol.com>
+
+	* src/gxvalid/gxvmort.c (gxv_mort_feature_validate): Fix wrong
+	length check. From Savannah patch #6682.
+
 2009-01-09  Werner Lemberg  <wl@gnu.org>
 
 	Fix problem with T1_FIELD_{NUM,FIXED}_TABLE2.
--- a/src/gxvalid/gxvmort.c
+++ b/src/gxvalid/gxvmort.c
@@ -42,7 +42,7 @@
   gxv_mort_feature_validate( GXV_mort_feature  f,
                              GXV_Validator     valid )
   {
-    if ( f->featureType > gxv_feat_registry_length )
+    if ( f->featureType >= gxv_feat_registry_length )
     {
       GXV_TRACE(( "featureType %d is out of registered range, "
                   "setting %d is unchecked\n",