OcRtcLib: Fix out of bounds access

This commit is contained in:
vit9696 2020-04-19 14:43:41 +03:00 committed by GitHub
parent fff7ced6ee
commit 38bdff0a05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -332,7 +332,7 @@ OcAppleRtcRamInstallProtocol (
);
if (!EFI_ERROR (Status)) {
for (Index = 0; Index < APPLE_RTC_TOTAL_SIZE; ++Index) {
for (Index = 0; Index < RtcBlacklistSize; ++Index) {
mEmulatedRtcStatus[RtcBlacklist[Index]] = TRUE;
DEBUG ((DEBUG_INFO, "OCRTC: Blacklisted %02x address\n", RtcBlacklist[Index]));
}