OUT UINT32 *ScratchSize\r
)\r
{\r
+ if (Source == NULL \r
+ || DestinationSize == NULL \r
+ || ScratchSize == NULL) {\r
+ return EFI_INVALID_PARAMETER;\r
+ }\r
return UefiDecompressGetInfo (Source, SourceSize, DestinationSize, ScratchSize);\r
}\r
\r
EFI_STATUS Status;\r
UINT32 TestDestinationSize;\r
UINT32 TestScratchSize;\r
-\r
+ \r
+ if (Source == NULL \r
+ || Destination== NULL \r
+ || Scratch == NULL) {\r
+ return EFI_INVALID_PARAMETER;\r
+ }\r
+ \r
Status = UefiDecompressGetInfo (Source, SourceSize, &TestDestinationSize, &TestScratchSize);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
OUT UINT32 *ScratchSize\r
)\r
{\r
+ if (Source == NULL \r
+ || DestinationSize == NULL \r
+ || ScratchSize == NULL) {\r
+ return EFI_INVALID_PARAMETER;\r
+ }\r
+\r
return TianoDecompressGetInfo (Source, SourceSize, DestinationSize, ScratchSize);\r
}\r
\r
EFI_STATUS Status;\r
UINT32 TestDestinationSize;\r
UINT32 TestScratchSize;\r
-\r
+ \r
+ if (Source == NULL \r
+ || Destination== NULL \r
+ || Scratch == NULL) {\r
+ return EFI_INVALID_PARAMETER;\r
+ }\r
+ \r
Status = TianoDecompressGetInfo (Source, SourceSize, &TestDestinationSize, &TestScratchSize);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
OUT UINT32 *ScratchSize\r
)\r
{\r
+ if (Source == NULL \r
+ || DestinationSize == NULL \r
+ || ScratchSize == NULL) {\r
+ return EFI_INVALID_PARAMETER;\r
+ }\r
+ \r
return CustomDecompressGetInfo (Source, SourceSize, DestinationSize, ScratchSize);\r
}\r
\r
UINT32 TestDestinationSize;\r
UINT32 TestScratchSize;\r
\r
+ if (Source == NULL \r
+ || Destination== NULL \r
+ || Scratch == NULL) {\r
+ return EFI_INVALID_PARAMETER;\r
+ }\r
+\r
Status = CustomDecompressGetInfo (Source, SourceSize, &TestDestinationSize, &TestScratchSize);\r
if (EFI_ERROR (Status)) {\r
return Status;\r