Skip to content

CFF Fix crash when allocating zero size array

Adrian Johnson requested to merge ajohnson/cairo:cff-global-subs-fix into master

Use a _cairo_calloc macro instead of calloc to ensure it always returns NULL if the allocation is zero sized.

Avoid allocating a zero sized array in CFF subset when the number of global subroutines is zero.

Merge request reports