diff options
| author | Stanislaw Grams <stanislaw.grams@intel.com> | 2026-10-09 14:38:00 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-10-19 07:26:39 +0300 |
| commit | 38c33ed0b98f5dc4c376b2d87fac84ab2c1854be (patch) | |
| tree | 5a76d207bcf1653b984299d5b2fc99919b7a9916 /UnitTestFrameworkPkg/Library/UnitTestPersistenceLibSimpleFileSystem | |
| parent | c1415771ac592ad8509351c46cd3cda4f38d7d52 (diff) | |
| download | edk2-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 'UnitTestFrameworkPkg/Library/UnitTestPersistenceLibSimpleFileSystem')
0 files changed, 0 insertions, 0 deletions
