提交 14d29a10 编写于 作者: M Michiharu Ariza

check number of blends against args on stack

上级 6727c4b6
......@@ -235,6 +235,11 @@ struct CFF2CSOpSet : CSOpSet<BlendArg, OPSET, CFF2CSInterpEnv, PARAM, PATH>
env.process_blend ();
k = env.get_region_count ();
n = env.argStack.pop_uint ();
if (unlikely (env.argStack.get_count () < ((k+1) * n)))
{
env.set_error ();
return;
}
/* copy the blend values into blend array of the default values */
unsigned int start = env.argStack.get_count () - ((k+1) * n);
for (unsigned int i = 0; i < n; i++)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册