提交 442ec2f2 编写于 作者: G Goldfish64

OcAppleKernelLib: Add ParseFatArchitecture status check

上级 5ea63445
......@@ -145,6 +145,9 @@ ParseFatArchitecture (
UINT32 FileSize;
Status = GetFileSize (File, &FileSize);
if (EFI_ERROR (Status)) {
return Status;
}
if (BufferSize >= FileSize) {
return EFI_INVALID_PARAMETER;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册