From nobody Fri May 17 01:43:47 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+113183+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+113183+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1704381589; cv=none; d=zohomail.com; s=zohoarc; b=W3iUksGaouqhaU+Uohr6kOw/tKhSD0v5/J76vmVnSdwnYmVl8z4PCghp2ebZz6Uc8Vz7BTSat1iNojW6tRE/9DTKktRKB/cGtSfqy+e5Nai3HCT9tTc9qB2DLCp16DnjEKaXUavR9svugE10jyxA2XUwAGyQr9EiyODYqWGdsuw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1704381589; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:Sender:Subject:Subject:To:To:Message-Id; bh=tc/q3qO4wowCHdHkpgf6eoK2jR+kBp3CkMltUDmgLj4=; b=nJDvrCA/3pFSZKOjkpEFrRgBda6H+PXK3HdARj/v6AKSkxzuB3Cmkqd4sZx5BbtKxGwJ1VynIS3RhpVsJ68wrVHZkBBf5md+d2AbAkdyuB4YEpgmSAK5lcOq+Jj2gOZfFHHkHPAvaeLVFYSp2o0pz9mpeWlHgrlJdGD2XqtcV1Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+113183+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1704381589849624.7216819377284; Thu, 4 Jan 2024 07:19:49 -0800 (PST) Return-Path: DKIM-Signature: a=rsa-sha256; bh=rbYsqPQOrWoj0p1zpo3QFPLhtKSNz0lwwGH/uXzE7SU=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1704381589; v=1; b=bteRK9pqKJSVuljvdGHir+d/Zm103iGkXFJGY5VTbU2UThu2YEHpTRh/wfd52/DoFvoqTpXZ U6eSyL02zmLYKYJ35KsrSom0KZzmTmmKNcyroHjItSkk/m9FExdUbRMfH/MACKfIrsF8ZSrzCMf PVtxsU8Tm34DA7MYYgKP/v1A= X-Received: by 127.0.0.2 with SMTP id YNB7YY1788612xhFxP6HJcZd; Thu, 04 Jan 2024 07:19:49 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web10.51568.1704366106800112511 for ; Thu, 04 Jan 2024 03:01:47 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10942"; a="400991296" X-IronPort-AV: E=Sophos;i="6.04,330,1695711600"; d="scan'208";a="400991296" X-Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2024 03:01:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10942"; a="814597589" X-IronPort-AV: E=Sophos;i="6.04,330,1695711600"; d="scan'208";a="814597589" X-Received: from basatg01.gar.corp.intel.com ([10.66.253.28]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2024 03:01:44 -0800 From: Pethaiyan Madhan To: devel@edk2.groups.io Cc: "Pethaiyan, Madhan" , Liming Gao , Michael D Kinney , Wei6 Xu Subject: [edk2-devel] [PATCH] FmpDevicePkg: GetImageInfo Add missing condition Date: Thu, 4 Jan 2024 16:31:28 +0530 Message-Id: MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,madhan.pethaiyan@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: wYZX9ehIywLSZPhHrBLBhRqax1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1704381591485100001 Content-Type: text/plain; charset="utf-8" From: "Pethaiyan, Madhan" Mantis 1899 : Added missing condition check under GetImageInfo function, if the PackageVersionName is NULL return EFI_INVALID_PARAMETER Signed-off-by: Pethaiyan Madhan Cc: Liming Gao Cc: Michael D Kinney Cc: Wei6 Xu --- FmpDevicePkg/FmpDxe/FmpDxe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FmpDevicePkg/FmpDxe/FmpDxe.c b/FmpDevicePkg/FmpDxe/FmpDxe.c index 1e7ec4a09e..e87094f84c 100644 --- a/FmpDevicePkg/FmpDxe/FmpDxe.c +++ b/FmpDevicePkg/FmpDxe/FmpDxe.c @@ -495,7 +495,7 @@ GetTheImageInfo ( // Confirm that buffer isn't null // if ( (ImageInfo =3D=3D NULL) || (DescriptorVersion =3D=3D NULL) || (Des= criptorCount =3D=3D NULL) || (DescriptorSize =3D=3D NULL) - || (PackageVersion =3D=3D NULL)) + || (PackageVersion =3D=3D NULL) || (PackageVersionName =3D=3D NULL)) { DEBUG ((DEBUG_ERROR, "FmpDxe(%s): GetImageInfo() - Pointer Parameter i= s NULL.\n", mImageIdName)); Status =3D EFI_INVALID_PARAMETER; --=20 2.38.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113183): https://edk2.groups.io/g/devel/message/113183 Mute This Topic: https://groups.io/mt/103523940/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-