mirror of https://github.com/acidanthera/audk.git
b7f82a3a0f
This commit adds serveral checks for the 'Packet' parameter passed to the EFI_NVM_EXPRESS_PASS_THRU_PROTOCOL.PassThru() API: The check for the 'TransferLength' field in EFI_NVM_EXPRESS_PASS_THRU_COMMAND_PACKET to make sure the value will not exceed the maximum data transfer size allowed by a controller. The check for the 'TransferBuffer' and 'TransferLength' fields in EFI_NVM_EXPRESS_PASS_THRU_COMMAND_PACKET when the Opcode of an NVME command indicates a data transfer between controller and host. The check for the 'MetadataLength' field in EFI_NVM_EXPRESS_PASS_THRU_COMMAND_PACKET to make sure the value is not 0 when the corresponding 'MetadataBuffer' field has a non-NULL value. Cc: Feng Tian <feng.tian@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com> |
||
---|---|---|
.. | ||
EhciDxe | ||
EhciPei | ||
IdeBusPei | ||
IncompatiblePciDeviceSupportDxe | ||
NvmExpressDxe | ||
PciBusDxe | ||
PciHostBridgeDxe | ||
PciSioSerialDxe | ||
SataControllerDxe | ||
SdMmcPciHcDxe | ||
SdMmcPciHcPei | ||
UfsPciHcDxe | ||
UfsPciHcPei | ||
UhciDxe | ||
UhciPei | ||
XhciDxe | ||
XhciPei |