[truetype] Avoid some memory zeroing.

* src/truetype/ttinterp.c (Init_Context): Tweak allocation macro.
* src/truetype/ttpload.c (tt_face_load_cvt): Ditto.
wl/meson-logging
Alexei Podtelezhnikov 4 years ago
parent c177cc354d
commit 56ae943050
  1. 7
      ChangeLog
  2. 2
      src/truetype/ttinterp.c
  3. 2
      src/truetype/ttpload.c

@ -1,3 +1,10 @@
2021-05-01 Alexei Podtelezhnikov <apodtele@gmail.com>
[truetype] Avoid some memory zeroing.
* src/truetype/ttinterp.c (Init_Context): Tweak allocation macro.
* src/truetype/ttpload.c (tt_face_load_cvt): Ditto.
2021-05-01 Alexei Podtelezhnikov <apodtele@gmail.com>
[woff2] Avoid some memory zeroing.

@ -306,7 +306,7 @@
exec->memory = memory;
exec->callSize = 32;
if ( FT_NEW_ARRAY( exec->callStack, exec->callSize ) )
if ( FT_QNEW_ARRAY( exec->callStack, exec->callSize ) )
goto Fail_Memory;
/* all values in the context are set to 0 already, but this is */

@ -347,7 +347,7 @@
face->cvt_size = table_len / 2;
if ( FT_NEW_ARRAY( face->cvt, face->cvt_size ) )
if ( FT_QNEW_ARRAY( face->cvt, face->cvt_size ) )
goto Exit;
if ( FT_FRAME_ENTER( face->cvt_size * 2L ) )

Loading…
Cancel
Save