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 69C31740037 for ; Sun, 27 Aug 2023 10:57:24 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=+h8eJQ6VIMbxhYUYM7o3dVVXTVF0hf/N8ybaR9AElNM=; 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=1693133842; v=1; b=EQbqJrTWi+/6jZaVOU56tYkLY+BXJqw7x1gPn7MaH0kGmocc8HWy5clZPXDVJahhNbOrebMW fCHxG6i61LLzgFqppDIlMvqb1JafvRvQO45QjwqnXbtN7EogQDkYNmEmK1VX5cZXqUTSmYy/zmf d0qyGywKpIxyBAcu7YiI23OA= X-Received: by 127.0.0.2 with SMTP id 3VxbYY7687511xajh3v7Pszp; Sun, 27 Aug 2023 03:57:22 -0700 X-Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) by mx.groups.io with SMTP id smtpd.web11.25130.1693133842129748370 for ; Sun, 27 Aug 2023 03:57:22 -0700 X-Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-500b0f06136so1376701e87.0 for ; Sun, 27 Aug 2023 03:57:21 -0700 (PDT) X-Gm-Message-State: KMITi1PEcaEc4dGnrOluis8kx7686176AA= X-Google-Smtp-Source: AGHT+IGU6KXWd5Wid/f+LVjVWoeJmspceN1GWwm2pnO/jvqaVR0ViALb+9QnpTb9jSzcYlMLt9zMcg== X-Received: by 2002:a05:6512:368c:b0:500:9946:9c69 with SMTP id d12-20020a056512368c00b0050099469c69mr7432683lfs.29.1693133840028; Sun, 27 Aug 2023 03:57:20 -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.18 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 27 Aug 2023 03:57:19 -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 1/5] RedfishClientPkg: fix crash on access to uninialized list variable. Date: Sun, 27 Aug 2023 13:56:36 +0300 Message-Id: <20230827105640.94731-2-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-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=EQbqJrTW; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.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 Signed-off-by: Mike Maslenkin --- RedfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RedfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c b/Re= dfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c index b9c799e07684..a1738de46fdf 100644 --- a/RedfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c +++ b/RedfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c @@ -97,6 +97,8 @@ RedfishConsumeResourceCommon ( if (BiosCs->Attributes =3D=3D NULL) {=0D BiosCs->Attributes =3D AllocateZeroPool (sizeof (RedfishBios_V1_0_9_At= tributes_CS));=0D ASSERT (BiosCs->Attributes !=3D NULL);=0D + // initialize list=0D + BiosCs->Attributes->Prop.ForwardLink =3D &BiosCs->Attributes->Prop;=0D }=0D =0D //=0D --=20 2.32.0 (Apple Git-132) -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#108044): https://edk2.groups.io/g/devel/message/108044 Mute This Topic: https://groups.io/mt/100988471/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-