From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mx.groups.io with SMTP id smtpd.web11.4236.1601424949864889339 for ; Tue, 29 Sep 2020 17:15:50 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.120, mailfrom: nathaniel.l.desimone@intel.com) IronPort-SDR: HM763PUpwXhSA1Z2eay0xNiybf04kkq0/fesPCu1x7T4SAP9H2WOI5nlrMYGnVBbiv+xvdgF4E arhdGJ8zqPLw== X-IronPort-AV: E=McAfee;i="6000,8403,9759"; a="159708762" X-IronPort-AV: E=Sophos;i="5.77,320,1596524400"; d="scan'208";a="159708762" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2020 17:15:48 -0700 IronPort-SDR: aKOrGQ8sSWN11JYgJL8gUCd/5gMrIbI7AzHXK0cvvthk9iMnqDGp2uIoBKt77s/5fxxPmPughX vPrWVVO3Z6VQ== X-IronPort-AV: E=Sophos;i="5.77,320,1596524400"; d="scan'208";a="312397979" Received: from nldesimo-desk1.amr.corp.intel.com ([10.209.9.28]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2020 17:15:43 -0700 From: "Nate DeSimone" To: devel@edk2.groups.io Cc: Chasel Chiu , Liming Gao , Eric Dong Subject: [edk2-platforms] [PATCH V1 0/2] MinPlatformPkg: Minor fixes in CompressLib Date: Tue, 29 Sep 2020 17:15:27 -0700 Message-Id: <20200930001529.2212-1-nathaniel.l.desimone@intel.com> X-Mailer: git-send-email 2.27.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Current code only has bounds checks in ASSERT macros. They are also needed in release mode where ASSERT is not used. Also adds coding style cleanups in CompressLib Signed-off-by: Nate DeSimone Cc: Chasel Chiu Cc: Nate DeSimone Cc: Liming Gao Cc: Eric Dong Nate DeSimone (2): MinPlatformPkg: Add missing bounds checks to CompressLib MinPlatformPkg: Coding style cleanups in CompressLib .../Library/CompressLib/CompressLib.c | 187 ++++++++++-------- .../Library/CompressLib/CompressLib.inf | 4 +- 2 files changed, 103 insertions(+), 88 deletions(-) -- 2.27.0.windows.1