audk/MdeModulePkg
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
..
Application MdeModulePkg: Add sample help information for HelloWorld application. 2016-02-24 15:11:14 +08:00
Bus MdeModulePkg/PciHostBridge: Don't assert when setting UC to MMIO fails 2016-03-04 10:06:26 +01:00
Core MdeModulePkg: DxeCore: fully initialize image context before passing it on 2016-03-01 10:15:59 +01:00
Include MdeModulePkg/PciHostBridgeLib: Correct the function header comments 2016-03-03 18:24:25 +01:00
Library MdeModulePkg/Bds: More user-friendly network boot option description 2016-03-07 13:35:43 +08:00
Logo MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
Universal MdeModulePkg AcpiTableDxe: Use Rsdt to check against NULL 2016-03-08 18:05:16 +08:00
Contributions.txt
License.txt
MdeModulePkg.dec MdeModulePkg: Make HII configuration settings available to OS runtime 2016-03-04 14:04:43 +08:00
MdeModulePkg.dsc MdeModulePkg: Add RamDiskDxe driver implementation 2016-02-29 13:51:08 +08:00
MdeModulePkg.uni MdeModulePkg: Add missing PCD usage information string. 2016-02-29 09:39:50 +08:00
MdeModulePkgExtra.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00