add security check.
update functions comments. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8832 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -1126,7 +1126,7 @@ UpdatePciInfo (
|
||||
BarEndIndex = PCI_MAX_BAR - 1;
|
||||
}
|
||||
|
||||
if (BarIndex >= PCI_MAX_BAR) {
|
||||
if (BarIndex > PCI_MAX_BAR) {
|
||||
Ptr++;
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user