mirror of https://github.com/acidanthera/audk.git
The commit adds check in function InternalPrintGraphic() to ensure that the expression: Blt->Width * Blt->Height * sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL) will not overflow in the UINTN range. The commit also adds an explicit UINT32 type cast for 'Blt->Width' to avoid possible overflow in the int range for: Blt->Width * Blt->Height Since both Blt->Width and Blt->Height are of type UINT16. They will be promoted to int (signed) first, and then perform the multiplication operation. If the result of multiplication between Blt->Width and Blt->Height exceeds the range of type int, a potential incorrect size will be passed into function AllocateZeroPool(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> |
||
---|---|---|
.. | ||
BaseCacheMaintenanceLib | ||
BaseCpuLib | ||
BaseDebugLibNull | ||
BaseDebugLibSerialPort | ||
BaseDebugPrintErrorLevelLib | ||
BaseExtractGuidedSectionLib | ||
BaseIoLibIntrinsic | ||
BaseLib | ||
BaseMemoryLib | ||
BaseMemoryLibMmx | ||
BaseMemoryLibOptDxe | ||
BaseMemoryLibOptPei | ||
BaseMemoryLibRepStr | ||
BaseMemoryLibSse2 | ||
BaseOrderedCollectionRedBlackTreeLib | ||
BasePalLibNull | ||
BasePcdLibNull | ||
BasePciCf8Lib | ||
BasePciExpressLib | ||
BasePciLibCf8 | ||
BasePciLibPciExpress | ||
BasePciSegmentLibPci | ||
BasePeCoffExtraActionLibNull | ||
BasePeCoffGetEntryPointLib | ||
BasePeCoffLib | ||
BasePerformanceLibNull | ||
BasePostCodeLibDebug | ||
BasePostCodeLibPort80 | ||
BasePrintLib | ||
BaseReportStatusCodeLibNull | ||
BaseRngLib | ||
BaseS3BootScriptLibNull | ||
BaseS3IoLib | ||
BaseS3PciLib | ||
BaseS3SmbusLib | ||
BaseS3StallLib | ||
BaseSerialPortLibNull | ||
BaseSmbusLibNull | ||
BaseStackCheckLib | ||
BaseSynchronizationLib | ||
BaseTimerLibNullTemplate | ||
BaseUefiDecompressLib | ||
DxeCoreEntryPoint | ||
DxeCoreHobLib | ||
DxeExtendedSalLib | ||
DxeExtractGuidedSectionLib | ||
DxeHobLib | ||
DxeHstiLib | ||
DxeIoLibCpuIo2 | ||
DxeIoLibEsal | ||
DxePalLibEsal | ||
DxePcdLib | ||
DxePciLibEsal | ||
DxePciSegmentLibEsal | ||
DxeRuntimeExtendedSalLib | ||
DxeRuntimePciExpressLib | ||
DxeSalLibEsal | ||
DxeServicesLib | ||
DxeServicesTableLib | ||
DxeSmbusLib | ||
DxeTimerLibEsal | ||
PeiCoreEntryPoint | ||
PeiDxePostCodeLibReportStatusCode | ||
PeiExtractGuidedSectionLib | ||
PeiHobLib | ||
PeiIoLibCpuIo | ||
PeiMemoryAllocationLib | ||
PeiMemoryLib | ||
PeiPalLib | ||
PeiPcdLib | ||
PeiPciLibPciCfg2 | ||
PeiPciSegmentLibPciCfg2 | ||
PeiResourcePublicationLib | ||
PeiServicesLib | ||
PeiServicesTablePointerLib | ||
PeiServicesTablePointerLibIdt | ||
PeiServicesTablePointerLibKr7 | ||
PeiSmbusLibSmbus2Ppi | ||
PeimEntryPoint | ||
SecPeiDxeTimerLibCpu | ||
SmiHandlerProfileLibNull | ||
SmmIoLibSmmCpuIo2 | ||
SmmLibNull | ||
SmmMemLib | ||
SmmMemoryAllocationLib | ||
SmmPciExpressLib | ||
SmmPciLibPciRootBridgeIo | ||
SmmPeriodicSmiLib | ||
SmmServicesTableLib | ||
UefiApplicationEntryPoint | ||
UefiBootServicesTableLib | ||
UefiDebugLibConOut | ||
UefiDebugLibDebugPortProtocol | ||
UefiDebugLibStdErr | ||
UefiDevicePathLib | ||
UefiDevicePathLibDevicePathProtocol | ||
UefiDriverEntryPoint | ||
UefiFileHandleLib | ||
UefiLib | ||
UefiMemoryAllocationLib | ||
UefiMemoryLib | ||
UefiPalLib | ||
UefiPciLibPciRootBridgeIo | ||
UefiPciSegmentLibPciRootBridgeIo | ||
UefiRuntimeLib | ||
UefiRuntimeServicesTableLib | ||
UefiSalLib | ||
UefiScsiLib | ||
UefiUsbLib |