/* Verify the command block - abort if invalid */\r
if ((CommandBlock.Signature != CBW_SIGNATURE) ||\r
(CommandBlock.LUN >= TOTAL_LUNS) ||\r
+ (CommandBlock.Flags & 0x1F) ||\r
+ (CommandBlock.SCSICommandLength == 0) ||\r
(CommandBlock.SCSICommandLength > MAX_SCSI_COMMAND_LENGTH))\r
{\r
/* Stall both data pipes until reset by host */\r
\r
if ((MSInterfaceInfo->State.CommandBlock.Signature != MS_CBW_SIGNATURE) ||\r
(MSInterfaceInfo->State.CommandBlock.LUN >= MSInterfaceInfo->Config.TotalLUNs) ||\r
+ (MSInterfaceInfo->State.CommandBlock.Flags & 0x1F) ||\r
+ (MSInterfaceInfo->State.CommandBlock.SCSICommandLength == 0) ||\r
(MSInterfaceInfo->State.CommandBlock.SCSICommandLength > 16))\r
{\r
Endpoint_StallTransaction();\r