From nobody Tue Feb 10 02:43:11 2026 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+108045+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+108045+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1693133844; cv=none; d=zohomail.com; s=zohoarc; b=mFZ1hNPGeZtk3ImJZuSfkZ36wgaNqIsOAhkZY8/X1hd3VVeDzsasqXbABMe46zrN6etvUrWP0sbP8cUetnz/MdpDK53BpoeeZmI5xqsa+8zQqOrQDGCUnT7yRzYHCiv4QwC8LcVrmUgfsQysH0wASjXorXcVWQbAaWuT8hgQRlw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693133844; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=m7hIPbIkvvE2cF9ae62ed8Cd8bZsim3Bhhc8figX7SE=; b=SsF9z7XrAhwuhTaMtJC6PG/6/x5OSWxDYFOn3QtP+ox2ketw16F9e9FErQg/95L/ULGAtu+nJAyNGYZcqo0pGRjMOYOpQaANfR0X6fcp0Y7Jt2+HTtGWVV3TjJRgCEyAnA78pVj/TOlSLo/NFuzA5soZScwmdEKLJ1YpSde5DZU= 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+108045+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 1693133844216300.2783049172566; Sun, 27 Aug 2023 03:57:24 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=1qAdvviNzG3psZm+/0D8LSfLQ4OpFx9d2fi7Y77OEnU=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: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=1693133843; v=1; b=O50FR1ZF5UxaMmYU37W9cFCiDJQ4G1smGDi7N4AJvdGjE49T1rKycBNlYEWFJ+uxmdftSlW5 I79whSKgIas/5X+mZuCOv7NoShH5hxmlhyZahMMA9iYiX5LAcO7NYLZ2Qv9NyIs6+dkWOfRlt9j ZtBZrx5LKf4swED6+6GXYbwI= X-Received: by 127.0.0.2 with SMTP id emnyYY1788612xDjvsEcHKXB; Sun, 27 Aug 2023 03:57:23 -0700 X-Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) by mx.groups.io with SMTP id smtpd.web11.25131.1693133843138782705 for ; Sun, 27 Aug 2023 03:57:23 -0700 X-Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-5007f3d3235so3559755e87.2 for ; Sun, 27 Aug 2023 03:57:22 -0700 (PDT) X-Gm-Message-State: cXO1KnugM6hWT9577u9uutunx1787277AA= X-Google-Smtp-Source: AGHT+IE4jSVfGW2ys5rEyEWZRB9T/b6CzMWazSl/Tq+uljV7hPIKL0gmYtiDyqk1YPNYZ0VseS+a5w== X-Received: by 2002:a19:4302:0:b0:500:7a21:3e78 with SMTP id q2-20020a194302000000b005007a213e78mr12503504lfa.55.1693133841315; Sun, 27 Aug 2023 03:57:21 -0700 (PDT) X-Received: from localhost.localdomain ([79.164.221.98]) by smtp.gmail.com with ESMTPSA id i11-20020ac2522b000000b004fb9fe34c27sm1085825lfl.92.2023.08.27.03.57.20 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 27 Aug 2023 03:57:20 -0700 (PDT) From: "Mike Maslenkin" To: devel@edk2.groups.io Cc: abner.chang@amd.com, nicklew@nvidia.com, igork@ami.com, Mike Maslenkin Subject: [edk2-devel] [PATCH 2/5] RedfishClientPkg: fix access to uninitialized variable Date: Sun, 27 Aug 2023 13:56:37 +0300 Message-Id: <20230827105640.94731-3-mike.maslenkin@gmail.com> In-Reply-To: <20230827105640.94731-1-mike.maslenkin@gmail.com> References: <20230827105640.94731-1-mike.maslenkin@gmail.com> 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,mike.maslenkin@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1693133844982100008 Content-Type: text/plain; charset="utf-8" This patch fixes access to uninitialized variable, causing ASSERT from FreePool at least. Before this patch RedfishSettingsResponse was initialized by GetResourceByUri under 'if (JsonValue !=3D NULL)' condition. But freed under 'if (Private->Payload !=3D NULL)' condition. Thus uninitialized pointers caused ASSERT on attempt to free memory. Signed-off-by: Mike Maslenkin --- RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c b/RedfishC= lientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c index e7ac8779581c..f5562fb49cab 100644 --- a/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c +++ b/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c @@ -128,6 +128,8 @@ RedfishResourceConsumeResource ( return Status; } =20 + ZeroMem (&RedfishSettingsResponse, sizeof (REDFISH_RESPONSE)); + ExpectedResponse =3D &Response; RedfishSettingsUri =3D NULL; JsonValue =3D RedfishJsonInPayload (Response.Payload); --=20 2.32.0 (Apple Git-132) -=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 (#108045): https://edk2.groups.io/g/devel/message/108045 Mute This Topic: https://groups.io/mt/100988472/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-