]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/PlatformDxe: Check ExtractConfig and RouteConfig arguments
authorDimitrije Pavlov <dimitrije.pavlov@arm.com>
Tue, 16 Aug 2022 20:28:35 +0000 (15:28 -0500)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 16 Aug 2022 20:52:19 +0000 (20:52 +0000)
commit30d62f5e3170c01f3331677894f80415eec92f23
tree5d91013e7d937a660cbb7c44190f74333eff0658
parent2812668bfc121ee792cf3302195176ef4a2ad0bc
OvmfPkg/PlatformDxe: Check ExtractConfig and RouteConfig arguments

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>
OvmfPkg/PlatformDxe/Platform.c