diff options
Diffstat (limited to 'MdePkg/Library/BasePciCf8Lib')
-rw-r--r-- | MdePkg/Library/BasePciCf8Lib/PciLib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/MdePkg/Library/BasePciCf8Lib/PciLib.c b/MdePkg/Library/BasePciCf8Lib/PciLib.c index 2f82fbe2c8..7b52a7c925 100644 --- a/MdePkg/Library/BasePciCf8Lib/PciLib.c +++ b/MdePkg/Library/BasePciCf8Lib/PciLib.c @@ -1299,6 +1299,7 @@ PciCf8ReadBuffer ( UINTN EndAddress;
ASSERT_INVALID_PCI_ADDRESS (StartAddress, 0);
+ ASSERT (((StartAddress & 0xFFF) + Size) <= 0x100);
ASSERT (Buffer != NULL);
EndAddress = StartAddress + Size;
@@ -1386,6 +1387,7 @@ PciCf8WriteBuffer ( UINTN EndAddress;
ASSERT_INVALID_PCI_ADDRESS (StartAddress, 0);
+ ASSERT (((StartAddress & 0xFFF) + Size) <= 0x100);
ASSERT (Buffer != NULL);
EndAddress = StartAddress + Size;
|