ref: 2985e4fa30d599b20ab266e82aae8c91b299a2f5
parent: 837285e40772aa10338bcb1fa5118ec93d575a8d
author: Werner Lemberg <[email protected]>
date: Mon Nov 9 16:37:40 EST 2015
* src/cid/cidload.c (cid_face_open): Fix GDBytes guard (#46408).
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2015-11-09 Werner Lemberg <[email protected]>
+ * src/cid/cidload.c (cid_face_open): Fix GDBytes guard (#46408).
+
+2015-11-09 Werner Lemberg <[email protected]>
+
[truetype] Remove integer to pointer conversion compiler warning.
Problem reported by Alexei.
--- 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" ));