From 2583b6085e63a65481442d2cbe811918f06d0f66 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Sat, 1 May 2021 09:22:26 -0400 Subject: [PATCH] * src/sfnt/pngshim.c (Load_SBit_Png): Tweak allocaton macro. --- ChangeLog | 4 ++++ src/sfnt/pngshim.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9d9a6a803..3556c772d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2021-05-01 Alexei Podtelezhnikov + + * src/sfnt/pngshim.c (Load_SBit_Png): Tweak allocaton macro. + 2021-05-01 Alexei Podtelezhnikov [truetype] Avoid some memory zeroing. diff --git a/src/sfnt/pngshim.c b/src/sfnt/pngshim.c index 19b5db8a5..02fe37440 100644 --- 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;