forked from minhngoc25a/freetype2
* 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;
|
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;
|
goto Exit;
|
||||||
|
|
||||||
/* while parsing the font we always update `face->ttf_size' so that */
|
/* while parsing the font we always update `face->ttf_size' so that */
|
||||||
|
|
Loading…
Reference in New Issue