shithub: freetype+ttf2subf

Download patch

ref: 2d9578488518846491189736a336176c75c9732a
parent: 8150ed0db23ce7d82c6e145636255fab31b90ecf
author: Alexei Podtelezhnikov <apodtele@gmail.com>
date: Thu May 6 18:49:13 EDT 2021

* src/base/ftrfork.c (FT_Raccess_Get_DataOffsets): Tweak allocation.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2021-05-06  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/base/ftrfork.c (FT_Raccess_Get_DataOffsets): Tweak allocation.
+
 2021-05-05  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
 	[cff,psaux] Avoid memory zeroing (contd.).
--- a/src/base/ftrfork.c
+++ b/src/base/ftrfork.c
@@ -251,7 +251,7 @@
         if ( error )
           return error;
 
-        if ( FT_NEW_ARRAY( ref, *count ) )
+        if ( FT_QNEW_ARRAY( ref, *count ) )
           return error;
 
         for ( j = 0; j < *count; j++ )