shithub: freetype+ttf2subf

Download patch

ref: d911cb5392bd558642fcd6e85d6224618b8e1421
parent: dc42f826af89e758d160c8855eadb53eb6815fa1
author: Alexei Podtelezhnikov <[email protected]>
date: Sat May 1 19:49:11 EDT 2021

* src/cid/cidload.c (cid_read_subrs): Tweak allocaton macro.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2021-05-01  Alexei Podtelezhnikov  <[email protected]>
 
+	* src/cid/cidload.c (cid_read_subrs): Tweak allocaton macro.
+
+2021-05-01  Alexei Podtelezhnikov  <[email protected]>
+
 	[sfnt] Avoid some memory zeroing.
 
 	* src/sfnt/sfobjs.c (sfnt_open_font, sfnt_init_face,
--- a/src/cid/cidload.c
+++ b/src/cid/cidload.c
@@ -589,8 +589,8 @@
       /* allocate, and read them                     */
       data_len = offsets[num_subrs] - offsets[0];
 
-      if ( FT_NEW_ARRAY( subr->code, num_subrs + 1 ) ||
-           FT_QALLOC( subr->code[0], data_len )      )
+      if ( FT_QNEW_ARRAY( subr->code, num_subrs + 1 ) ||
+           FT_QALLOC( subr->code[0], data_len )       )
         goto Fail;
 
       if ( FT_STREAM_SEEK( cid->data_offset + offsets[0] ) ||