From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.136; helo=mga12.intel.com; envelope-from=mang.guo@intel.com; receiver=edk2-devel@lists.01.org Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id BBDBA210FCF5A for ; Wed, 22 Aug 2018 22:32:51 -0700 (PDT) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Aug 2018 22:32:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,277,1531810800"; d="dat'59?scan'59,208,59";a="74991330" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by FMSMGA003.fm.intel.com with ESMTP; 22 Aug 2018 22:32:39 -0700 Received: from fmsmsx158.amr.corp.intel.com (10.18.116.75) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 22 Aug 2018 22:32:38 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx158.amr.corp.intel.com (10.18.116.75) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 22 Aug 2018 22:32:38 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.240]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.143]) with mapi id 14.03.0319.002; Thu, 23 Aug 2018 13:32:37 +0800 From: "Guo, Mang" To: "edk2-devel@lists.01.org" Thread-Topic: [Patch][edk2-platforms/devel-IntelAtomProcessorE3900 Fix klocwork issues Thread-Index: AdQ6orM0wGf5OgKrT0GeCpHmBlK5ug== Date: Thu, 23 Aug 2018 05:32:37 +0000 Message-ID: <22D2C85ED001C54AA20BFE3B0E4751D1526D394E@SHSMSX103.ccr.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: <22D2C85ED001C54AA20BFE3B0E4751D1526D394E@SHSMSX103.ccr.corp.intel.com> x-originating-ip: [10.239.127.40] MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [Patch][edk2-platforms/devel-IntelAtomProcessorE3900 Fix klocwork issues X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2018 05:32:51 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Guo Mang (5): Fix klocwork issues Change StrCpy() to StrCpyS() Add NULL checking for some pointers Initialize some pointers Correct code format .../Common/Acpi/AcpiPlatformDxe/AcpiPlatform.c | 2 +- .../Application/FirmwareUpdate/FirmwareUpdate.c | 4 +-- .../Smbios/SmBiosMiscDxe/MiscOemType0x94Function.c | 4 +-- .../SmBiosMiscDxe/MiscSystemManufacturerFunction.c | 16 +++++++----- .../DxeSmbiosProcessorLib/DxeSmbiosProcessorLib.c | 7 ++++- .../PeiFspPolicyInitLib/PeiFspSaPolicyInitLib.c | 10 +++++++- .../PlatformBootManagerLib/PlatformBootManager.c | 5 +++- .../PlatformBootManagerLib/PlatformBootOption.c | 10 +++----- .../PlatformSettings/PlatformPostMemPei/BootMode.c | 10 +------- .../PlatformPostMemPei/PlatformInit.c | 3 ++- .../PlatformPreMemPei/FvCallback.c | 4 +-- .../PlatformSetupDxe/SetupInfoRecords.c | 8 +++--- .../Common/PlatformSmm/Platform.c | 4 +-- .../IntelFsp2WrapperPkg/FspNotifyDxe/LoadBelow4G.c | 4 +-- .../FspsWrapperPeim/FspsWrapperPeim.c | 6 ++++- .../BaseFspWrapperApiLib/FspWrapperApiLib.c | 10 ++++---- .../SampleCode/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c | 6 ++--- .../Cpu/SmmAccess/Dxe/SmmAccessDriver.c | 4 +-- .../Cpu/SmmAccess/Pei/SmmAccessDriver.c | 6 ++--- .../BaseConfigBlockLib/BaseConfigBlockLib.c | 10 ++++---- .../Library/PeiDxeSmmMmPciLib/PeiDxeSmmMmPciLib.c | 4 +-- .../BroxtonSiPkg/Library/SideBandLib/SideBandLib.c | 4 +-- .../Universal/Variable/RuntimeDxe/Variable.c | 6 ++--- .../Library/BaseScSpiCommonLib/SpiCommon.c | 10 ++++---- .../Library/Private/DxeScHdaLib/ScHdaLib.c | 10 +++++--- .../Private/PeiDxeUsbCommonLib/UsbCommonLib.c | 4 +-- .../Library/ScPlatformLib/ScPlatformLibrary.c | 4 +-- .../SouthCluster/Reset/RuntimeDxe/ScReset.c | 14 +++++----- .../BroxtonSiPkg/SouthCluster/ScInit/Dxe/ScInit.c | 20 +++++++-------- .../BroxtonSiPkg/SouthCluster/ScInit/Dxe/ScLpss.c | 14 +++++----- .../SouthCluster/ScSmiDispatcher/Smm/ScSmmSx.c | 14 +++++----- .../ScSmiDispatcher/Smm/ScxSmmHelpers.c | 30 +++++++++++-------= ---- .../BroxtonSoC/BroxtonSiPkg/Txe/Heci/Dxe/Hecidrv.c | 8 +++--- .../BroxtonSoC/BroxtonSiPkg/Txe/Heci/Smm/HeciSmm.c | 24 ++++++++--------- 34 files changed, 158 insertions(+), 141 deletions(-) --=20 2.10.1.windows.1