check number of blends against args on stack
This commit is contained in:
parent
6727c4b6f0
commit
14d29a1043
|
@ -235,6 +235,11 @@ struct CFF2CSOpSet : CSOpSet<BlendArg, OPSET, CFF2CSInterpEnv, PARAM, PATH>
|
||||||
env.process_blend ();
|
env.process_blend ();
|
||||||
k = env.get_region_count ();
|
k = env.get_region_count ();
|
||||||
n = env.argStack.pop_uint ();
|
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 */
|
/* copy the blend values into blend array of the default values */
|
||||||
unsigned int start = env.argStack.get_count () - ((k+1) * n);
|
unsigned int start = env.argStack.get_count () - ((k+1) * n);
|
||||||
for (unsigned int i = 0; i < n; i++)
|
for (unsigned int i = 0; i < n; i++)
|
||||||
|
|
Loading…
Reference in New Issue