diff options
| author | Patrick Rudolph <patrick.rudolph@9elements.com> | 2026-05-06 09:08:01 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-09-28 20:54:30 +0300 |
| commit | 6b045f8b9a76720180620b5cce31051e55eef9e8 (patch) | |
| tree | e81240e0e5fd49c1690cae9b871d309a3c24a1dc /PrmPkg/Samples/PrmSampleContextBufferModule/Library/DxeContextBufferModuleConfigLib/DxeContextBufferModuleConfigLib.inf | |
| parent | 87bbe265f4e2d03435855bbbdfc4f1972cea3fc1 (diff) | |
| download | edk2-6b045f8b9a76720180620b5cce31051e55eef9e8.tar.xz | |
UefiPayloadPkg: Fix use of uninitialized memory
In coreboot the SMBIOS table generation is optional. When no
SMBIOS tables where found UefiPayloadEntry creates a HOB, but
doesn't initialize the contents.
The gUniversalPayloadSmbiosTableGuid HOB is then used by SmbiosDxe
and it crashes when the pointer in the HOB doesn't point to mapped
DRAM.
Fix that by only creating gUniversalPayloadSmbiosTableGuid HOB
when SMBIOS tables where found.
TEST=Can boot using UEFIPayload when coreboot doesn't provide
SMBIOS tables.
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Diffstat (limited to 'PrmPkg/Samples/PrmSampleContextBufferModule/Library/DxeContextBufferModuleConfigLib/DxeContextBufferModuleConfigLib.inf')
0 files changed, 0 insertions, 0 deletions
