From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 06178AC1601 for ; Tue, 9 Jan 2024 15:04:58 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Gw3eOD4lNt4uMt0TBrshFlyUoPJrUL56cbBa4WfG0SE=; 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=1704812697; v=1; b=s7Xlyfh/UU8IAnavdY7YpKiqkA+IZJQ9uRXySyG88pIaayfYuSgB4dpbQi2aqWt9VKHFF+61 ldSE4v3CshlqJntUdnRPE54qeUT48oWk27eWiLOVXIGKnf8S0xsUf6ElK7Y9HnpgiVnDCs3o7iq y4uGctP0ghzSbyGHXBE/W1t8= X-Received: by 127.0.0.2 with SMTP id F70QYY7687511xAMU00RoW8Y; Tue, 09 Jan 2024 07:04:57 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by mx.groups.io with SMTP id smtpd.web11.1489.1704695949527134527 for ; Sun, 07 Jan 2024 22:39:09 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10946"; a="5161902" X-IronPort-AV: E=Sophos;i="6.04,340,1695711600"; d="scan'208";a="5161902" X-Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jan 2024 22:39:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10946"; a="784757741" X-IronPort-AV: E=Sophos;i="6.04,340,1695711600"; d="scan'208";a="784757741" X-Received: from basatg01.gar.corp.intel.com ([10.66.253.28]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jan 2024 22:39:05 -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: Mon, 8 Jan 2024 12:08:50 +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: KXj82lWmyp7AdkFGbPORvpmex7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b="s7Xlyfh/"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io From: "Pethaiyan, Madhan" 23.1 Firmware Management Protocol , 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 == NULL) || (DescriptorVersion == NULL) || (DescriptorCount == NULL) || (DescriptorSize == NULL) - || (PackageVersion == NULL)) + || (PackageVersion == NULL) || (PackageVersionName == NULL)) { DEBUG ((DEBUG_ERROR, "FmpDxe(%s): GetImageInfo() - Pointer Parameter is NULL.\n", mImageIdName)); Status = EFI_INVALID_PARAMETER; -- 2.38.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113452): https://edk2.groups.io/g/devel/message/113452 Mute This Topic: https://groups.io/mt/103620852/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-