Commit d3a478e2 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(ccl_driver) <CCL_End>: Decrement stack_idx only when it is greater

than 0.
parent a8f573f3
......@@ -1026,8 +1026,9 @@ ccl_driver (ccl, source, destination, src_bytes, dst_bytes, consumed)
break;
case CCL_End: /* 0000000000000000000000XXXXX */
if (stack_idx-- > 0)
if (stack_idx > 0)
{
stack_idx--;
ccl_prog = ccl_prog_stack_struct[stack_idx].ccl_prog;
ic = ccl_prog_stack_struct[stack_idx].ic;
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment