mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +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 (CfgMgrProtocol != NULL);
|
||||||
ASSERT (Generator != NULL);
|
ASSERT (Generator != NULL);
|
||||||
ASSERT (AcpiHeader != NULL);
|
ASSERT (AcpiHeader != NULL);
|
||||||
|
ASSERT (AcpiTableInfo != NULL);
|
||||||
ASSERT (Length >= sizeof (EFI_ACPI_DESCRIPTION_HEADER));
|
ASSERT (Length >= sizeof (EFI_ACPI_DESCRIPTION_HEADER));
|
||||||
|
|
||||||
if ((CfgMgrProtocol == NULL) ||
|
if ((CfgMgrProtocol == NULL) ||
|
||||||
(Generator == NULL) ||
|
(Generator == NULL) ||
|
||||||
(AcpiHeader == NULL) ||
|
(AcpiHeader == NULL) ||
|
||||||
|
(AcpiTableInfo == NULL) ||
|
||||||
(Length < sizeof (EFI_ACPI_DESCRIPTION_HEADER))
|
(Length < sizeof (EFI_ACPI_DESCRIPTION_HEADER))
|
||||||
) {
|
) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user