shithub: freetype+ttf2subf

Download patch

ref: caff87b1f939d9141232d7de0d2350d4c0cf34d6
parent: 8750e843df27a0798d1f998be609d326d53b1c3f
author: Alexei Podtelezhnikov <[email protected]>
date: Mon Apr 26 18:45:40 EDT 2021

* src/sfnt/sfobjs.c (sfnt_init_face): Revert macro change.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2021-04-26  Alexei Podtelezhnikov  <[email protected]>
 
+	* src/sfnt/sfobjs.c (sfnt_init_face): Revert macro change.
+
+2021-04-26  Alexei Podtelezhnikov  <[email protected]>
+
 	[cff] Avoid some memory zeroing.
 
 	* src/cff/cffparse.c (cff_parser_init): Tweak memory macro.
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -643,8 +643,8 @@
        */
 
       if ( ( face->variation_support & TT_FACE_FLAG_VAR_FVAR ) &&
-           !( FT_QALLOC( default_values, num_axes * 4 )  ||
-              FT_QALLOC( instance_values, num_axes * 4 ) )     )
+           !( FT_ALLOC( default_values, num_axes * 4 )  ||
+              FT_ALLOC( instance_values, num_axes * 4 ) )     )
       {
         /* the current stream position is 16 bytes after the table start */
         FT_ULong  array_start = FT_STREAM_POS() - 16 + offset;