Skip to content

Test 'coords' before memcpy

Ben Wagner requested to merge bungeman/freetype:check_coords_memcpy_null into master

It is undefined behavior to pass NULL to memcpy. In tt_set_mm_blend 'coords' is passed to memcpy as a 'src' but TT_Get_MM_Blend and TT_Get_Var_Design explictly call tt_set_mm_blend with 'coords' as NULL. In addition TT_Set_MM_Blend has a similar possible issue.

Merge request reports