mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcAppleKernelLib: Add ParseFatArchitecture status check
This commit is contained in:
parent
5ea634453e
commit
442ec2f2c3
@ -145,6 +145,9 @@ ParseFatArchitecture (
|
||||
UINT32 FileSize;
|
||||
|
||||
Status = GetFileSize (File, &FileSize);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
if (BufferSize >= FileSize) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user