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 3F61DAC134E for ; Thu, 4 Jan 2024 15:19:50 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=LgIyklR6EOhVFfL846g4HS+JuS0jhREVwjYOhMLRN4Q=; 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=1704381588; v=1; b=OLu+xTGq7WOAlOQ4pb4W6NimGtiCzDCN73VggUB5QXTFWjir0k0KPaG0Fo25TvLau4fk1Rjq Cl06Gx1JwuUuXE9uLR8PTxP7JVmO1FNXzXxjG/aJkEqiBggpx5+NrYF6gEFXNLhULRAUGhdlz0v QT6XQ8I4+HR2+cpV842WDN1E= X-Received: by 127.0.0.2 with SMTP id IcLnYY7687511xmmRYlJZodd; Thu, 04 Jan 2024 07:19:48 -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: qG1ydcXGaPyVQAN1QApIEwoLx7686176AA= 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=OLu+xTGq; 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" 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 == 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 (#113183): https://edk2.groups.io/g/devel/message/113183 Mute This Topic: https://groups.io/mt/103523940/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-