summaryrefslogtreecommitdiff
path: root/PrmPkg/Samples/PrmSampleContextBufferModule/Library/DxeContextBufferModuleConfigLib/DxeContextBufferModuleConfigLib.inf
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2026-05-06 09:08:01 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-09-28 20:54:30 +0300
commit6b045f8b9a76720180620b5cce31051e55eef9e8 (patch)
treee81240e0e5fd49c1690cae9b871d309a3c24a1dc /PrmPkg/Samples/PrmSampleContextBufferModule/Library/DxeContextBufferModuleConfigLib/DxeContextBufferModuleConfigLib.inf
parent87bbe265f4e2d03435855bbbdfc4f1972cea3fc1 (diff)
downloadedk2-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