* 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:
Werner Lemberg 2022-01-11 09:14:48 +01:00
parent 33626164e8
commit 639a02154b
1 changed files with 2 additions and 1 deletions

View File

@ -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 */