summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c
diff options
context:
space:
mode:
authorKun Qin <kuqin@microsoft.com>2025-10-30 21:42:53 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-11-22 16:06:14 +0300
commitfeeb137d43b7c00623b602a2a3fa7352c712ef81 (patch)
treefe9bcfa04a4dccb93fedff3246e7f40769e9b450 /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c
parent5be1bccd9cd009e54c75ee31fb8f760dfb7954b1 (diff)
downloadedk2-feeb137d43b7c00623b602a2a3fa7352c712ef81.tar.xz
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>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c')
0 files changed, 0 insertions, 0 deletions