edk2/MdeModulePkg/Core/Dxe
Kun Qin feeb137d43 MdeModulePkg: DxeCore: Adding check for underflow before subtraction
During DXE core memory service initialization, the system would check
available resource descriptor hobs against the memory top from PHIT hob.
However, it is possible that a given resource descriptor hob will not be
larger than the cover the memory top, causing the Length calculation to
underflow.

This change adds a check for potential underflow before performing the
subtraction.

Signed-off-by: Kun Qin <kun.qin@microsoft.com>
2025-11-22 13:06:14 +00:00
..
Dispatcher MdeModulePkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
DxeMain MdeModulePkg: Always Initialize Separate Exception Stacks 2025-10-23 00:57:59 +00:00
Event MdeModulePkg/Core/Dxe: Fix TPL inversion from DEBUG() message 2025-10-30 03:26:29 +00:00
FwVol MdeModulePkg/Core/Dxe: Fix memory leak issue in FwVol.c 2023-09-11 02:17:51 +00:00
FwVolBlock MdeModulePkg/Core/Dxe: Fix memory leak issue in FwVolBlock.c 2023-09-11 02:17:51 +00:00
Gcd MdeModulePkg: DxeCore: Adding check for underflow before subtraction 2025-11-22 13:06:14 +00:00
Hand MdeModulePkg: fix warning about uninitialized variable 2025-01-29 17:20:57 +01:00
Image MdeModulePkg: CoreDxe: Handle multilple MemoryAllocationModules 2025-11-06 03:17:41 +00:00
Library MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Mem MdeModulePkg: CoreDxe: Handle multilple MemoryAllocationModules 2025-11-06 03:17:41 +00:00
Misc MdeModulePkg: Fix UEFI runtime driver loading after EndOfDxe 2025-10-23 15:59:39 +02:00
SectionExtraction MdeModulePkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
DxeCore.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
DxeCoreExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
DxeMain.h MdeModulePkg: Leak Memory if Not RW on FreePages 2025-07-09 00:59:56 +00:00
DxeMain.inf MdeModulePkg: Leak Memory if Not RW on FreePages 2025-07-09 00:59:56 +00:00