shithub: freetype+ttf2subf

Download patch

ref: 6b354931151043015469237fff361628fcd2efca
parent: d61b042568d395ef7d55d0475db9203ae0f6b3cf
author: Werner Lemberg <[email protected]>
date: Sat Oct 8 16:26:59 EDT 2016

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

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2016-10-08  Werner Lemberg  <[email protected]>
 
+	* src/cid/cidload.c (cid_face_open): Properly propagate `error'.
+
+2016-10-08  Werner Lemberg  <[email protected]>
+
 	[cid] Fix parsing of subr offsets.
 
 	Bug introduced 2016-05-16.
--- 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,