summaryrefslogtreecommitdiff
path: root/StdLib/LibC/Stdio
diff options
context:
space:
mode:
authorJason1 Lin <jason1.lin@intel.com>2024-07-15 22:29:40 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-07-17 05:46:12 +0000
commitb3441e01003ab91df816263df98f9675b2cd2aa1 (patch)
tree3f62f540c6a8c0e234f6fa766317d58f85dc44b9 /StdLib/LibC/Stdio
parent43b7a856fad2e25b1b5bddeb6cb08881a29caf4d (diff)
downloadedk2-master.zip
edk2-master.tar.gz
edk2-master.tar.bz2
MdeModulePkg/Core/DxeIplPeim: Enhance Code in DxeIplFindDxeCore FunctionHEADmaster
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4653 In DxeIplFindDxeCore function, there exists different behavior between Debug and Release built BIOS. This change is used to unify both of the code flow and fix the potential overflow of "Instance" variable. In this change, [1] Move the ASSERT_EFI_ERROR (Status) in failure to find DxeCore in any firmware volume condition. [2] Break the while-loop when not found required DxeCore. This would make the Instance variable not overflow in while-loop. [3] Add the CpuDeadLoop () in the end of the function and do not return since DxeCore is mandatory for the following booting to hand-off the PEI phase to DXE phase. [4] In case of the CpuDeadLoop () is de-assert by debugger, return the NULL pointer. Signed-off-by: Jason1 Lin <jason1.lin@intel.com>
Diffstat (limited to 'StdLib/LibC/Stdio')
0 files changed, 0 insertions, 0 deletions