* src/cid/cidload.c (cid_face_open): Fix GDBytes guard (#46408).
diff --git a/ChangeLog b/ChangeLog
index d663d9e..09475eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2015-11-09 Werner Lemberg <wl@gnu.org>
+ * src/cid/cidload.c (cid_face_open): Fix GDBytes guard (#46408).
+
+2015-11-09 Werner Lemberg <wl@gnu.org>
+
[truetype] Remove integer to pointer conversion compiler warning.
Problem reported by Alexei.
diff --git a/src/cid/cidload.c b/src/cid/cidload.c
index 7c39c02..382e3c0 100644
--- a/src/cid/cidload.c
+++ b/src/cid/cidload.c
@@ -750,7 +750,7 @@
/* sanity tests */
- if ( cid->fd_bytes < 0 || cid->gd_bytes < 0 )
+ if ( cid->fd_bytes < 0 || cid->gd_bytes < 1 )
{
FT_ERROR(( "cid_parse_dict:"
" Invalid `FDBytes' or `GDBytes' value\n" ));