summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c
diff options
context:
space:
mode:
authorStanislaw Grams <stanislaw.grams@intel.com>2026-10-09 14:38:00 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-10-19 07:26:39 +0300
commit0b14d8c58c8379d25fde73e2a64dd16c5d1c7062 (patch)
treea79820a383c22bf92733d4ec1c71ddf3683756c3 /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c
parent38c33ed0b98f5dc4c376b2d87fac84ab2c1854be (diff)
downloadedk2-0b14d8c58c8379d25fde73e2a64dd16c5d1c7062.tar.xz
EmbeddedPkg/PrePiHobLib: Reject oversized GUID HOB payloads
Check the GUID HOB payload length before the UINT16 allocation cast. Use the aligned maximum total HOB length of 0xFFF8 instead of 0xFFFF in both the assertion and runtime guard. Return NULL for oversized requests when assertions are disabled or return, and document the allocation and copy-wrapper failure behavior. Signed-off-by: Stanislaw Grams <stanislaw.grams@intel.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c')
0 files changed, 0 insertions, 0 deletions