Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType
Commits:
-
b3438ccb
by Alexei Podtelezhnikov at 2021-04-23T08:35:02-04:00
2 changed files:
Changes:
1 |
+2021-04-23 Alexei Podtelezhnikov <apodtele@gmail.com>
|
|
2 |
+ |
|
3 |
+ [pfr] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
|
|
4 |
+ |
|
5 |
+ * src/pfr/pfrload.c (pfr_extra_item_load_font_id, pfr_aux_name_load):
|
|
6 |
+ Do not zero out the buffer.
|
|
7 |
+ |
|
1 | 8 |
2021-04-23 Alexei Podtelezhnikov <apodtele@gmail.com>
|
2 | 9 |
|
3 | 10 |
[bzip2,gzip] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
|
... | ... | @@ -565,7 +565,7 @@ |
565 | 565 |
if ( phy_font->font_id )
|
566 | 566 |
goto Exit;
|
567 | 567 |
|
568 |
- if ( FT_ALLOC( phy_font->font_id, len + 1 ) )
|
|
568 |
+ if ( FT_QALLOC( phy_font->font_id, len + 1 ) )
|
|
569 | 569 |
goto Exit;
|
570 | 570 |
|
571 | 571 |
/* copy font ID name, and terminate it for safety */
|
... | ... | @@ -761,7 +761,7 @@ |
761 | 761 |
|
762 | 762 |
if ( ok )
|
763 | 763 |
{
|
764 |
- if ( FT_ALLOC( result, len + 1 ) )
|
|
764 |
+ if ( FT_QALLOC( result, len + 1 ) )
|
|
765 | 765 |
goto Exit;
|
766 | 766 |
|
767 | 767 |
FT_MEM_COPY( result, p, len );
|