Network Security Services (NSS)


BUG OF THE MONTH | Unpredictable result

V567 Undefined behavior. The ‘j’ variable is modified while being used twice between sequence points. pk11slot.c 1934

PK11SlotList* PK11_GetAllTokens(....)
  #if defined( XP_WIN32 ) 
    waste[ j & 0xf] = j++; 

The j variable is used twice in one sequence point. Because of that, you can’t predict the result of this expression. To learn more, see the description of the V567 diagnostic.

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 )

Google photo

You are commenting using your Google 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.