diff options
author | Pierre Gondois <Pierre.Gondois@arm.com> | 2021-10-08 15:46:13 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-10-08 15:39:42 +0000 |
commit | 25cf58a16353b20a20641c499b013392c5eb42ae (patch) | |
tree | a7092d6322b5be669c49ef94deffb2ab3afd18f3 | |
parent | 71c3c9c0c4e199ea4a144266c4fecc91637131b0 (diff) | |
download | edk2-25cf58a16353b20a20641c499b013392c5eb42ae.tar.gz edk2-25cf58a16353b20a20641c499b013392c5eb42ae.tar.bz2 edk2-25cf58a16353b20a20641c499b013392c5eb42ae.zip |
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>
-rw-r--r-- | DynamicTablesPkg/Library/Common/TableHelperLib/TableHelper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/DynamicTablesPkg/Library/Common/TableHelperLib/TableHelper.c b/DynamicTablesPkg/Library/Common/TableHelperLib/TableHelper.c index 9249e6b87f..f98da7ffdd 100644 --- a/DynamicTablesPkg/Library/Common/TableHelperLib/TableHelper.c +++ b/DynamicTablesPkg/Library/Common/TableHelperLib/TableHelper.c @@ -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;
|