Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType
Commits:
-
d911cb53
by Alexei Podtelezhnikov at 2021-05-01T23:49:11-04:00
2 changed files:
Changes:
1 |
+2021-05-01 Alexei Podtelezhnikov <apodtele@gmail.com>
|
|
2 |
+ |
|
3 |
+ * src/cid/cidload.c (cid_read_subrs): Tweak allocaton macro.
|
|
4 |
+ |
|
1 | 5 |
2021-05-01 Alexei Podtelezhnikov <apodtele@gmail.com>
|
2 | 6 |
|
3 | 7 |
[sfnt] Avoid some memory zeroing.
|
... | ... | @@ -589,8 +589,8 @@ |
589 | 589 |
/* allocate, and read them */
|
590 | 590 |
data_len = offsets[num_subrs] - offsets[0];
|
591 | 591 |
|
592 |
- if ( FT_NEW_ARRAY( subr->code, num_subrs + 1 ) ||
|
|
593 |
- FT_QALLOC( subr->code[0], data_len ) )
|
|
592 |
+ if ( FT_QNEW_ARRAY( subr->code, num_subrs + 1 ) ||
|
|
593 |
+ FT_QALLOC( subr->code[0], data_len ) )
|
|
594 | 594 |
goto Fail;
|
595 | 595 |
|
596 | 596 |
if ( FT_STREAM_SEEK( cid->data_offset + offsets[0] ) ||
|