audk/MdeModulePkg
Hao Wu dfaa565559 MdeModulePkg/DxeCore: Please static checker for false report
After commit 57df17fe26, some static check reports suspicious NULL pointer
deference at line:

  Entry->MachineType = Entry->Emulator->MachineType;
                       ^^^^^^^^^^^^^^^

within function PeCoffEmuProtocolNotify().

However, 'Entry->Emulator' is guaranteed to have a non-NULL value when
previous call to the CoreHandleProtocol() returns EFI_SUCCESS.

This commit will re-write the return status check for CoreHandleProtocol()
to add explicit NULL pointer check for protocol instance pointer.

Cc: Jian J Wang <jian.j.wang@intel.com>
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-04-28 08:31:38 +08:00
..
Application MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
Bus MdeModulePkg/AhciPei: Add PEI BlockIO support 2019-04-24 16:13:19 +08:00
Core MdeModulePkg/DxeCore: Please static checker for false report 2019-04-28 08:31:38 +08:00
Include MdeModulePkg: introduce PE/COFF image emulator protocol 2019-04-14 18:35:41 -07:00
Library MdeModulePkg/DxeCapsuleLibFmp: clone ESRT for runtime access 2019-04-23 18:15:00 +02:00
Logo MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
Universal MdeModulePkg/HiiDatabaseDxe: Release lock on all error return path 2019-04-24 10:23:20 +08:00
MdeModulePkg.dec MdeModulePkg: introduce PE/COFF image emulator protocol 2019-04-14 18:35:41 -07:00
MdeModulePkg.dsc MdeModulePkg: Change the SMM debug lib instance 2019-04-22 09:52:54 +08:00
MdeModulePkg.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
MdeModulePkgExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00