shithub: freetype+ttf2subf

Download patch

ref: 2583b6085e63a65481442d2cbe811918f06d0f66
parent: 56ae94305068dc97c950c2b47632d8e761083a88
author: Alexei Podtelezhnikov <apodtele@gmail.com>
date: Sat May 1 05:22:26 EDT 2021

* src/sfnt/pngshim.c (Load_SBit_Png): Tweak allocaton macro.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2021-05-01  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
+	* src/sfnt/pngshim.c (Load_SBit_Png): Tweak allocaton macro.
+
+2021-05-01  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
 	[truetype] Avoid some memory zeroing.
 
 	* src/truetype/ttinterp.c (Init_Context): Tweak allocation macro.
--- a/src/sfnt/pngshim.c
+++ b/src/sfnt/pngshim.c
@@ -430,7 +430,7 @@
         goto DestroyExit;
     }
 
-    if ( FT_NEW_ARRAY( rows, imgHeight ) )
+    if ( FT_QNEW_ARRAY( rows, imgHeight ) )
     {
       error = FT_THROW( Out_Of_Memory );
       goto DestroyExit;