The current implementation does not check if Progress or Results
pointers in ExtractConfig are NULL, or if Progress pointer in
RouteConfig is NULL. This causes the SCT test suite to crash.
Add a check to return EFI_INVALID_PARAMETER if any of these pointers
are NULL.
Signed-off-by: Dimitrije Pavlov <Dimitrije.Pavlov@arm.com>
Reviewed-by: Sunny Wang <sunny.wang@arm.com>
\r
DEBUG ((DEBUG_VERBOSE, "%a: Request=\"%s\"\n", __FUNCTION__, Request));\r
\r
+ if ((Progress == NULL) || (Results == NULL)) {\r
+ return EFI_INVALID_PARAMETER;\r
+ }\r
+\r
Status = PlatformConfigToFormState (&MainFormState);\r
if (EFI_ERROR (Status)) {\r
*Progress = Request;\r
Configuration\r
));\r
\r
+ if (Progress == NULL) {\r
+ return EFI_INVALID_PARAMETER;\r
+ }\r
+\r
//\r
// the "read" step in RMW\r
//\r