audk/MdePkg/Library/UefiLib
Star Zeng e7ac09b957 MdePkg UefiLib: Check Table against NULL in ScanTableInSDT
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1266

af5e952159 abstracted generic functions
from different modules (IntelVTdDxe, S3SaveStateDxe, PcRtc,
DpDynamicCommand and PiSmmCpuDxeSmm). Some of them (IntelVTdDxe and
PcRtc) checked Table against NULL before accessing Table->Signature,
some (S3SaveStateDxe, DpDynamicCommand and PiSmmCpuDxeSmm did not.

The ScanTableInSDT() in Acpi.c of UefiLib was mainly from
S3SaveStateDxe, so it does not check Table against NULL before
accessing Table->Signature.

This patch updates ScanTableInSDT() to check Table against NULL first
before accessing Table->Signature.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
2018-10-21 09:57:44 +08:00
..
Acpi.c MdePkg UefiLib: Check Table against NULL in ScanTableInSDT 2018-10-21 09:57:44 +08:00
Console.c MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
UefiDriverModel.c MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
UefiLib.c MdePkg/UefiLib: don't special-case EFI_FILE_MODE_CREATE in OpenMode 2018-08-22 10:31:47 +02:00
UefiLib.inf MdePkg UefiLib: Add new EfiLocateXXXAcpiTable() APIs 2018-09-27 14:25:32 +08:00
UefiLib.uni MdePkg: Convert all .uni files to utf-8 2015-12-15 04:53:50 +00:00
UefiLibInternal.h MdePkg UefiLib: Make the event empty function public 2017-01-20 15:51:16 +08:00
UefiLibPrint.c MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
UefiNotTiano.c MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00