* src/base/ftobjs.c (Mac_Read_POST_Resource): s/FT_ALLOC/FT_QALLOC/.
* builds/mac/ftmac.c (FT_New_Face_From_SFNT, read_lwfn): Ditto.
This commit is contained in:
parent
e6e5b67db3
commit
0bd5d95d66
@ -1,3 +1,8 @@
|
||||
2021-04-23 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||
|
||||
* src/base/ftobjs.c (Mac_Read_POST_Resource): s/FT_ALLOC/FT_QALLOC/.
|
||||
* builds/mac/ftmac.c (FT_New_Face_From_SFNT, read_lwfn): Ditto.
|
||||
|
||||
2021-04-23 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||
|
||||
* src/sdf/ftsdf.c (sdf_{edge,contour,shape}_new): Use FT_QALLOC.
|
||||
|
@ -1011,7 +1011,7 @@ typedef short ResourceIndex;
|
||||
old_total_size = total_size;
|
||||
}
|
||||
|
||||
if ( FT_ALLOC( buffer, (FT_Long)total_size ) )
|
||||
if ( FT_QALLOC( buffer, (FT_Long)total_size ) )
|
||||
goto Error;
|
||||
|
||||
/* Second pass: append all POST data to the buffer, add PFB fields. */
|
||||
@ -1127,7 +1127,7 @@ typedef short ResourceIndex;
|
||||
return FT_THROW( Invalid_Handle );
|
||||
|
||||
sfnt_size = (FT_ULong)GetHandleSize( sfnt );
|
||||
if ( FT_ALLOC( sfnt_data, (FT_Long)sfnt_size ) )
|
||||
if ( FT_QALLOC( sfnt_data, (FT_Long)sfnt_size ) )
|
||||
{
|
||||
ReleaseResource( sfnt );
|
||||
return error;
|
||||
|
@ -1928,7 +1928,7 @@
|
||||
goto Exit;
|
||||
}
|
||||
|
||||
if ( FT_ALLOC( pfb_data, (FT_Long)pfb_len + 2 ) )
|
||||
if ( FT_QALLOC( pfb_data, (FT_Long)pfb_len + 2 ) )
|
||||
goto Exit;
|
||||
|
||||
pfb_data[0] = 0x80;
|
||||
|
Loading…
Reference in New Issue
Block a user