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 | 0b14d8c58c8379d25fde73e2a64dd16c5d1c7062 (patch) | |
| tree | a79820a383c22bf92733d4ec1c71ddf3683756c3 /UnitTestFrameworkPkg/Library/UnitTestPersistenceLibSimpleFileSystem | |
| parent | 38c33ed0b98f5dc4c376b2d87fac84ab2c1854be (diff) | |
| download | edk2-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 'UnitTestFrameworkPkg/Library/UnitTestPersistenceLibSimpleFileSystem')
0 files changed, 0 insertions, 0 deletions
