From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web11.565.1572588865857342767 for ; Thu, 31 Oct 2019 23:14:26 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: shenglei.zhang@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Oct 2019 23:14:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,254,1569308400"; d="scan'208";a="204426453" Received: from shenglei-dev.ccr.corp.intel.com ([10.239.158.52]) by orsmga006.jf.intel.com with ESMTP; 31 Oct 2019 23:14:23 -0700 From: "Zhang, Shenglei" To: devel@edk2.groups.io Cc: Jian J Wang , Hao A Wu , Dandan Bi , Eric Dong , Liming Gao Subject: [PATCH v 3 0/4] MdeModulePkg: Add check and ASSERT for variables Date: Fri, 1 Nov 2019 14:14:13 +0800 Message-Id: <20191101061417.28896-1-shenglei.zhang@intel.com> X-Mailer: git-send-email 2.18.0.windows.1 Add error handling and ASSERT to ensure the variables are usable when called. Cc: Jian J Wang Cc: Hao A Wu Cc: Dandan Bi Cc: Eric Dong Cc: Hao A Wu Cc: Liming Gao Shenglei Zhang (4): v2: Update the checking method in 02/04. v3: Add ASSERT instead of error handling in 04/04. 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: ASSERT GetBufferForValue(&Value) .../Universal/EbcDxe/EbcDebugger/EdbCmdSymbol.c | 2 +- MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbSymbol.c | 2 +- MdeModulePkg/Universal/EsrtDxe/EsrtImpl.c | 10 ++++++++++ MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c | 1 + MdeModulePkg/Universal/SetupBrowserDxe/Expression.c | 3 +++ 5 files changed, 16 insertions(+), 2 deletions(-) -- 2.18.0.windows.1