audk/MdeModulePkg/Universal/Acpi/AcpiTableDxe
Star Zeng efef6ad6d7 MdeModulePkg AcpiTableDxe: Use Rsdt to check against NULL
Some static scan tool may regard CurrentRsdtEntry to be potentially
referenced to NULL pointer if CurrentRsdtEntry == NULL is used in
the right above if condition judgment.

        CopyMem (CurrentRsdtEntry, CurrentRsdtEntry + 1, (*NumberOfTableEntries - Index) * sizeof (UINT32));

It is introduced by commit f9bbb8d9c3.
To avoid it and have same style with
"((Xsdt == NULL) || CurrentTablePointer64 == (UINT64) (UINTN) Table->Table)",
use Rsdt instead of CurrentRsdtEntry to check against NULL.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Shumin Qiu <shumin.qiu@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Shumin Qiu <shumin.qiu@intel.com>
2016-03-08 18:05:16 +08:00
..
AcpiSdt.c MdeModulePkg AcpiTableDxe: Don't uninstall Acpi Sdt Protocol at ReadyToLock 2016-03-04 17:13:53 +08:00
AcpiSdt.h MdeModulePkg AcpiTableDxe: Cover EFI_ACPI_TABLE_VERSION_5_0. 2015-06-17 02:51:47 +00:00
AcpiTable.c Fix VS2003 build error 2010-05-19 06:02:17 +00:00
AcpiTable.h MdeModulePkg AcpiTableDxe: Don't uninstall Acpi Sdt Protocol at ReadyToLock 2016-03-04 17:13:53 +08:00
AcpiTableDxe.inf MdeModulePkg AcpiTableDxe: Don't uninstall Acpi Sdt Protocol at ReadyToLock 2016-03-04 17:13:53 +08:00
AcpiTableDxe.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
AcpiTableDxeExtra.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
AcpiTableProtocol.c MdeModulePkg AcpiTableDxe: Use Rsdt to check against NULL 2016-03-08 18:05:16 +08:00
Aml.c 1) Add type cast for better coding style. 2014-08-07 08:54:34 +00:00
AmlChild.c Update code to support VS2013 tool chain. 2014-07-28 07:52:57 +00:00
AmlNamespace.c Update code to support VS2013 tool chain. 2014-07-28 07:52:57 +00:00
AmlOption.c MdeModulePkg AcpiTableDxe: Fix a typo in function description 2016-01-06 01:11:25 +00:00
AmlString.c MdeModulePkg: Remove variables that are set, but not used 2011-10-31 15:58:05 +00:00