Entry and RetEntry might be NULL before used.
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
// Find the nearest symbol address\r
//\r
CandidateAddress = EbdFindSymbolAddress (Address, EdbMatchSymbolTypeNearestAddress, &Object, &Entry);\r
- if (CandidateAddress == 0 || CandidateAddress == (UINTN) -1) {\r
+ if (CandidateAddress == 0 || CandidateAddress == (UINTN) -1 || Entry == NULL) {\r
EDBPrint (L"Symbole at Address not found!\n");\r
return EFI_DEBUG_CONTINUE;\r
} else if (Address != CandidateAddress) {\r
&RetObject,\r
&RetEntry\r
);\r
- if (SymbolAddress == 0) {\r
+ if (SymbolAddress == 0 || RetEntry == NULL) {\r
return 0 ;\r
}\r
\r