diff options
author | Alexei Podtelezhnikov <apodtele@gmail.com> | 2021-04-22 22:34:05 -0400 |
---|---|---|
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | 2021-04-22 22:34:05 -0400 |
commit | 44b1ebe51465f0be2dcf2105e41febe139617cd1 (patch) | |
tree | 55c60afc94998183e993e38071fa89cd6fde4cca /src/base/ftobjs.c | |
parent | 8a459e5172dbb54b42d7b8247c98627d5cefb98d (diff) | |
download | freetype2-44b1ebe51465f0be2dcf2105e41febe139617cd1.tar.gz |
[base] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
* src/base/ftobjs.c (open_face_PS_from_sfnt_stream,
Mac_Read_sfnt_Resource): Do not zero out the buffer.
* src/base/ftmac.c (FT_New_Face_From_SFNT, read_lwfn): Ditto.
* src/base/ftrfork.c (raccess_make_file_name,
raccess_guess_darwin_hfsplus, raccess_guess_darwin_newvfs): Ditto.
Diffstat (limited to 'src/base/ftobjs.c')
-rw-r--r-- | src/base/ftobjs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c index e91f3033a..3da4f599d 100644 --- a/src/base/ftobjs.c +++ b/src/base/ftobjs.c @@ -1818,7 +1818,7 @@ if ( error ) goto Exit; - if ( FT_ALLOC( sfnt_ps, (FT_Long)length ) ) + if ( FT_QALLOC( sfnt_ps, (FT_Long)length ) ) goto Exit; error = FT_Stream_Read( stream, (FT_Byte *)sfnt_ps, length ); @@ -2128,7 +2128,7 @@ if ( error ) goto Exit; - if ( FT_ALLOC( sfnt_data, rlen ) ) + if ( FT_QALLOC( sfnt_data, rlen ) ) return error; error = FT_Stream_Read( stream, (FT_Byte *)sfnt_data, (FT_ULong)rlen ); if ( error ) { |