mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcRtcLib: Fix out of bounds access
This commit is contained in:
parent
fff7ced6ee
commit
38bdff0a05
@ -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]));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user