[pcf] Zero out the allocated properties.
Fallout reported as https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40033 * src/pcf/pcfread.c (pcf_get_properties): Use FT_NEW_ARRAY and zero out `properties` in case of failure.
This commit is contained in:
parent
de9faa53ed
commit
38b349c41b
|
@ -613,7 +613,8 @@ THE SOFTWARE.
|
|||
|
||||
strings[string_size] = '\0';
|
||||
|
||||
if ( FT_QNEW_ARRAY( properties, nprops ) )
|
||||
/* zero out in case of failure */
|
||||
if ( FT_NEW_ARRAY( properties, nprops ) )
|
||||
goto Bail;
|
||||
|
||||
face->properties = properties;
|
||||
|
|
Loading…
Reference in New Issue