audk/UefiPayloadPkg/Library
Patrick Rudolph 0b09397dfa UefiPayloadPkg: CbParseLib: Fix integer overflow
The IMD entry uses the 32bit start field as relative offset
to root. On Ia32X64 this works fine as UINTN is also 32 bit and
negative relative offsets are properly calculated due to an
integer overflow.

On X64 this doesn't work as UINTN is 64 bit and the offset
is no longer subtracted, but it's added to the root. Fix that
by sign extending the start field to 64 bit.

Test: Booting UefiPayloadPkg still works on Ia32X64 and now also
      works on X64.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-by: Gua Guo <gua.guo@intel.com>
Reviewed-by: Sean Rhodes <sean@starlabs.systems>
2024-01-22 11:04:21 +00:00
..
AcpiTimerLib UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
BaseSerialPortLibHob UefiPayloadPkg: Fix issues when MULTIPLE_DEBUG_PORT_SUPPORT is true 2023-05-02 07:11:21 +00:00
CbParseLib UefiPayloadPkg: CbParseLib: Fix integer overflow 2024-01-22 11:04:21 +00:00
CbSerialPortLib UefiPayloadPkg: Add support for logging to CBMEM console 2022-07-27 20:54:35 +00:00
DebugPrintErrorLevelLibHob UefiPayloadPkg: Fix debug print error level hob not save correct 2023-01-10 03:44:38 +00:00
DxeHobLib UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DxeHobListLib UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DxeHobListLibNull UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FlashDeviceLib UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PayloadEntryHobLib UefiPayloadPkg/Hob: Integer Overflow in CreateHob() 2024-01-16 23:36:08 +00:00
PciHostBridgeLib UefiPayloadPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
PciSegmentInfoLibAcpiBoardInfo UefiPayloadPkg: Add missing Guid gUefiAcpiBoardInfoGuid 2021-12-08 04:08:21 +00:00
PlatformBootManagerLib UefiPayloadPkg: Integrate UiApp and BootManagerMenuApp into MultiFv 2023-07-11 06:36:11 +00:00
PlatformHookLib UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PlatformSupportLibNull UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ResetSystemLib UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SblParseLib UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SpiFlashLib UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00