diff options
| author | Kun Qin <kuqin@microsoft.com> | 2025-10-30 21:30:23 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-11-22 16:06:14 +0300 |
| commit | 5be1bccd9cd009e54c75ee31fb8f760dfb7954b1 (patch) | |
| tree | 48bf205b77529ef10a728db9a9a122a52d3978ac /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c | |
| parent | e93ee87643a30df3bffede2f4cdadfc7be88f0bd (diff) | |
| download | edk2-5be1bccd9cd009e54c75ee31fb8f760dfb7954b1.tar.xz | |
MdeModulePkg: DxeCore: Check overflow before using resource hob memory top
Current GCD logic uses plain addition calulation when iterating through
the resource descriptor hobs. However, if the resource descriptor is
incorrectly prepared, this could cause incorrect memory initialization
and other failures down the boot process.
This change adds an overflow check before using the value.
Signed-off-by: Kun Qin <kun.qin@microsoft.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c')
0 files changed, 0 insertions, 0 deletions
