Commit 68e16e010534bbb32e29d719864fbedde5c0a2a1

Suzuki, Toshiya (鈴木俊哉) 2009-01-09T08:01:15

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

diff --git a/ChangeLog b/ChangeLog
index 7aea1d8..0d2f776 100644
--- 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.
diff --git a/src/gxvalid/gxvmort.c b/src/gxvalid/gxvmort.c
index 6fb71b9..f4fbd30 100644
--- 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",