* src/cid/cidload.c (cid_read_subrs): Tweak allocaton macro.
This commit is contained in:
parent
dc42f826af
commit
d911cb5392
|
@ -1,3 +1,7 @@
|
||||||
|
2021-05-01 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||||
|
|
||||||
|
* src/cid/cidload.c (cid_read_subrs): Tweak allocaton macro.
|
||||||
|
|
||||||
2021-05-01 Alexei Podtelezhnikov <apodtele@gmail.com>
|
2021-05-01 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||||
|
|
||||||
[sfnt] Avoid some memory zeroing.
|
[sfnt] Avoid some memory zeroing.
|
||||||
|
|
|
@ -589,8 +589,8 @@
|
||||||
/* allocate, and read them */
|
/* allocate, and read them */
|
||||||
data_len = offsets[num_subrs] - offsets[0];
|
data_len = offsets[num_subrs] - offsets[0];
|
||||||
|
|
||||||
if ( FT_NEW_ARRAY( subr->code, num_subrs + 1 ) ||
|
if ( FT_QNEW_ARRAY( subr->code, num_subrs + 1 ) ||
|
||||||
FT_QALLOC( subr->code[0], data_len ) )
|
FT_QALLOC( subr->code[0], data_len ) )
|
||||||
goto Fail;
|
goto Fail;
|
||||||
|
|
||||||
if ( FT_STREAM_SEEK( cid->data_offset + offsets[0] ) ||
|
if ( FT_STREAM_SEEK( cid->data_offset + offsets[0] ) ||
|
||||||
|
|
Loading…
Reference in New Issue