From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web10.1957.1571283074411166873 for ; Wed, 16 Oct 2019 20:31:14 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.88, mailfrom: shenglei.zhang@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Oct 2019 20:31:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,306,1566889200"; d="scan'208";a="208129974" Received: from shenglei-dev.ccr.corp.intel.com ([10.239.158.52]) by orsmga002.jf.intel.com with ESMTP; 16 Oct 2019 20:31:11 -0700 From: "Zhang, Shenglei" To: devel@edk2.groups.io Cc: Jian J Wang , Hao A Wu , Dandan Bi , Eric Dong , Liming Gao Subject: [PATCH 0/4] MdeModulePkg: Add check for variables and return value Date: Thu, 17 Oct 2019 11:31:06 +0800 Message-Id: <20191017033110.12128-1-shenglei.zhang@intel.com> X-Mailer: git-send-email 2.18.0.windows.1 The variables and return value might be NULL. So add check for them before they are used. Cc: Jian J Wang Cc: Hao A Wu Cc: Dandan Bi Cc: Eric Dong Cc: Hao A Wu Cc: Liming Gao Shenglei Zhang (4): MdeModulePkg/EbcDebugger: Add check for Entry and RetEntry MdeModulePkg/HiiDatabaseDxe: Add check for StringPtr MdeModulePkg/EsrtDxe: Add check for EsrtRepository MdeModulePkg/SetupBrowserDxe: Add check for GetBufferForValue() .../Universal/EbcDxe/EbcDebugger/EdbCmdSymbol.c | 2 +- MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbSymbol.c | 2 +- MdeModulePkg/Universal/EsrtDxe/EsrtImpl.c | 10 ++++++++++ MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c | 4 ++++ MdeModulePkg/Universal/SetupBrowserDxe/Expression.c | 5 +++++ 5 files changed, 21 insertions(+), 2 deletions(-) -- 2.18.0.windows.1