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
commit38c33ed0b98f5dc4c376b2d87fac84ab2c1854be (patch)
tree5a76d207bcf1653b984299d5b2fc99919b7a9916 /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c
parentc1415771ac592ad8509351c46cd3cda4f38d7d52 (diff)
downloadedk2-38c33ed0b98f5dc4c376b2d87fac84ab2c1854be.tar.xz
MdePkg/PeiHobLib: Reject oversized GUID HOB payloads
Enforce the maximum aligned GUID HOB payload at runtime before adding the header size and narrowing the allocation length to UINT16. The existing assertion alone does not protect builds with assertions disabled. Return NULL for oversized requests and document the failure result for BuildGuidHob() and BuildGuidDataHob(). Retain the debug assertion. Signed-off-by: Stanislaw Grams <stanislaw.grams@intel.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c')
0 files changed, 0 insertions, 0 deletions