Oracle VM VirtualBox


V625 Consider inspecting the ‘for’ operator. Initial and final values of the iterator are the same. state_transform.c 1365

crStateTransformDiff(...., CRContext *fromCtx, CRContext *toCtx )
  for (i = to->colorStack.depth; i <= to->colorStack.depth; i++) 
    LOADMATRIX(to->colorStack.stack + i);
    from->colorStack.stack[i] = to->colorStack.stack[i];

    /* Don't want to push on the current matrix */
    if (i != to->colorStack.depth)

In this code fragment the initial and final values of the for loop counter are the same. As a result, the loop will have just one iteration. Perhaps, there is a mistake here and the loop should be:

for (i = from->colorStack.depth; i <= to->colorStack.depth; i++)

Please click here to see more bugs from this project.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.