UEFI for Intel Galileo

Copy-Paste

V535 The variable ‘Index’ is being used for this loop and for the outer loop. mdemodulepkg\core\pismmcore\dispatcher.c, 1233, 1269, 1316

for (Index = 0; Index < HandleCount; Index++) 
{ 
  FvHandle = HandleBuffer[Index]; 
  .... 
  for (Index = 0; Index < sizeof (mSmmFileTypes)/sizeof  
      (EFI_FV_FILETYPE); Index++) 
  { 
    .... 
  } 
  .... 
  for (Index = 0; Index < AprioriEntryCount; Index++)  
  { 
    .... 
  } 
}

The Index counter is used in the outer and in the nested loop at the same time. This code may work without errors for some time thanks to a lucky combination of circumstances.

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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s