audk/MdeModulePkg/Core
Michael Kubacki c19d18136e MdeModulePkg/Core/Pei: Fix pointer size mismatch in EvacuateTempRam()
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3512

In 32-bit PEI, the local variable pointers MigratedFvHeader and
RawDataFvHeader in EvacuateTempRam() will be 32-bit in size. The
pointers are currently passed to PeiServicesAllocatePages() which
expects a 64-bit output buffer of type EFI_PHYSICAL_ADDRESS.

When PeiServicesAllocatePages() writes to the buffer, the data
can overflow.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Dandan Bi <dandan.bi@intel.com>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
2021-09-16 01:51:36 +00:00
..
Dxe MdeModulePkg: Fix various typos 2021-05-17 02:10:31 +00:00
DxeIplPeim MdeModulePkg/DxeIplPeim: Support GHCB pages when creating page tables 2020-08-16 16:45:42 +00:00
Pei MdeModulePkg/Core/Pei: Fix pointer size mismatch in EvacuateTempRam() 2021-09-16 01:51:36 +00:00
PiSmmCore MdeModulePkg/PiSmmCore: Drop deprecated image profiling commands 2021-09-01 04:58:21 +00:00
RuntimeDxe MdeModulePkg: document workaround for EFI_RUNTIME_EVENT_ENTRY PI spec bug 2019-10-09 09:40:09 +02:00