mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
add security check
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9311 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
e8de46808a
commit
eb14b48130
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe
@ -374,6 +374,8 @@ GatherDeviceInfo (
|
||||
for (Offset = PciIoDevice->SrIovCapabilityOffset + EFI_PCIE_CAPABILITY_ID_SRIOV_BAR0, BarIndex = 0;
|
||||
Offset <= PciIoDevice->SrIovCapabilityOffset + EFI_PCIE_CAPABILITY_ID_SRIOV_BAR5;
|
||||
BarIndex++) {
|
||||
|
||||
ASSERT (BarIndex < PCI_MAX_BAR);
|
||||
Offset = PciIovParseVfBar (PciIoDevice, Offset, BarIndex);
|
||||
}
|
||||
}
|
||||
|
@ -1229,6 +1229,8 @@ ProgramBar (
|
||||
UINT64 Address;
|
||||
UINT32 Address32;
|
||||
|
||||
ASSERT (Node->Bar < PCI_MAX_BAR);
|
||||
|
||||
//
|
||||
// Check VF BAR
|
||||
//
|
||||
@ -1249,7 +1251,6 @@ ProgramBar (
|
||||
//
|
||||
Node->PciDev->Allocated = TRUE;
|
||||
|
||||
ASSERT (Node->Bar < PCI_MAX_BAR);
|
||||
switch ((Node->PciDev->PciBar[Node->Bar]).BarType) {
|
||||
|
||||
case PciBarTypeIo16:
|
||||
|
Loading…
x
Reference in New Issue
Block a user