mirror of https://github.com/freetype/freetype
* src/type42/t42objs.c (T42_Open_Face): Avoid use of uninitialized memory.
Reported as https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43508
This commit is contained in:
parent
33626164e8
commit
639a02154b
|
@ -44,7 +44,8 @@
|
|||
|
||||
parser = &loader.parser;
|
||||
|
||||
if ( FT_QALLOC( face->ttf_data, 12 ) )
|
||||
/* To handle buggy fonts we don't use `FT_QALLOC` here. */
|
||||
if ( FT_ALLOC( face->ttf_data, 12 ) )
|
||||
goto Exit;
|
||||
|
||||
/* while parsing the font we always update `face->ttf_size' so that */
|
||||
|
|
Loading…
Reference in New Issue