Commit 6b354931151043015469237fff361628fcd2efca

Werner Lemberg 2016-10-08T20:26:59

* src/cid/cidload.c (cid_face_open): Properly propagate `error'.

diff --git a/ChangeLog b/ChangeLog
index be85355..1024f71 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2016-10-08  Werner Lemberg  <wl@gnu.org>
 
+	* src/cid/cidload.c (cid_face_open): Properly propagate `error'.
+
+2016-10-08  Werner Lemberg  <wl@gnu.org>
+
 	[cid] Fix parsing of subr offsets.
 
 	Bug introduced 2016-05-16.
diff --git a/src/cid/cidload.c b/src/cid/cidload.c
index a0a5c24..15d9623 100644
--- a/src/cid/cidload.c
+++ b/src/cid/cidload.c
@@ -733,9 +733,11 @@
       }
 
       /* we must convert the data section from hexadecimal to binary */
-      if ( FT_ALLOC( face->binary_data, parser->binary_length )         ||
-           cid_hex_to_binary( face->binary_data, parser->binary_length,
-                              parser->data_offset, face )               )
+      if ( FT_ALLOC( face->binary_data, parser->binary_length ) ||
+           ( error = cid_hex_to_binary( face->binary_data,
+                                        parser->binary_length,
+                                        parser->data_offset,
+                                        face ) )                )
         goto Exit;
 
       FT_Stream_OpenMemory( face->cid_stream,