mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
DynamicTablesPkg: Add missing parameter check
Add missing check of 'AcpiTableInfo' in AddAcpiHeader(). Reviewed-by: Sami Mujawar <sami.mujawar@arm.com> Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
This commit is contained in:
parent
71c3c9c0c4
commit
25cf58a163
@ -122,11 +122,13 @@ AddAcpiHeader (
|
||||
ASSERT (CfgMgrProtocol != NULL);
|
||||
ASSERT (Generator != NULL);
|
||||
ASSERT (AcpiHeader != NULL);
|
||||
ASSERT (AcpiTableInfo != NULL);
|
||||
ASSERT (Length >= sizeof (EFI_ACPI_DESCRIPTION_HEADER));
|
||||
|
||||
if ((CfgMgrProtocol == NULL) ||
|
||||
(Generator == NULL) ||
|
||||
(AcpiHeader == NULL) ||
|
||||
(AcpiTableInfo == NULL) ||
|
||||
(Length < sizeof (EFI_ACPI_DESCRIPTION_HEADER))
|
||||
) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
|
Loading…
x
Reference in New Issue
Block a user