[ot-svg] Don't accept the hooks if value has been passed from an

env variable.
This commit is contained in:
Moazin Khatti 2019-08-22 13:12:07 +05:00
parent c492bf3f0a
commit 836c94e8d2
1 changed files with 7 additions and 1 deletions

View File

@ -131,7 +131,13 @@
if ( !ft_strcmp( property_name, "svg_hooks" ) )
{
SVG_RendererHooks* hooks = (SVG_RendererHooks*)value;
SVG_RendererHooks* hooks;
if ( value_is_string == TRUE )
return FT_THROW( Invalid_Argument );
hooks = (SVG_RendererHooks*)value;
renderer->hooks = *hooks;
renderer->hooks_set = TRUE;
}