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 46F9AAC0BE6 for ; Tue, 29 Aug 2023 08:01:23 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=WtEQB1o3RXmNMfbBM1VYlJF+xx67he84uDBcguawpK0=; 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=1693296081; v=1; b=pv1bjrNleutsUh9LYQPk7Tfw5EhPyg7EkJGuwL0sh0vRGHK1JGkTLuVhEcIrClEs+0O2Z4BB sFRmCRvVaCdQm3fPCXcpa4mM1qLtgMk3p4KBPfBJXSNwK8oVHBaWXskOumq5GEBW1WgsG8v5hUD LFwLStB4CGVoOxqpk0403PFE= X-Received: by 127.0.0.2 with SMTP id LCfgYY7687511xd6SIWqaaFW; Tue, 29 Aug 2023 01:01:21 -0700 X-Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) by mx.groups.io with SMTP id smtpd.web11.12653.1693296081009871383 for ; Tue, 29 Aug 2023 01:01:21 -0700 X-Received: by mail-lj1-f179.google.com with SMTP id 38308e7fff4ca-2bbad32bc79so60726401fa.0 for ; Tue, 29 Aug 2023 01:01:20 -0700 (PDT) X-Gm-Message-State: 1SaL4mekTPrCjZIxYh5NUfmax7686176AA= X-Google-Smtp-Source: AGHT+IEo4sRybueHqYc4KvYyLsPU1W9jELnSdyxDxMHew7z3C9DIfmmpx6IkhU61WcFVlOBaLzLNmw== X-Received: by 2002:a05:651c:210e:b0:2bc:ffe5:54a1 with SMTP id a14-20020a05651c210e00b002bcffe554a1mr7573125ljq.32.1693296079058; Tue, 29 Aug 2023 01:01:19 -0700 (PDT) X-Received: from localhost.localdomain ([79.164.221.98]) by smtp.gmail.com with ESMTPSA id h10-20020a2e900a000000b002ba130e9a29sm2077325ljg.76.2023.08.29.01.01.18 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 29 Aug 2023 01:01:18 -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 v2 1/6] RedfishClientPkg: fix crash on access to uninialized list variable. Date: Tue, 29 Aug 2023 11:01:07 +0300 Message-Id: <20230829080112.12748-2-mike.maslenkin@gmail.com> In-Reply-To: <20230829080112.12748-1-mike.maslenkin@gmail.com> References: <20230829080112.12748-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=pv1bjrNl; 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 (#108079): https://edk2.groups.io/g/devel/message/108079 Mute This Topic: https://groups.io/mt/101027003/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-