From nobody Sat Feb 7 07:12:02 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+91499+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+91499+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1658190347; cv=none; d=zohomail.com; s=zohoarc; b=A69CrDB7hCIRbXmpoqAjgtqbmsu5h+Pu3ZMvHYkU/niRBerBZghIlhjwbHrKD8n1zWDQb9ZcErI0sfYTSB50VWTj9DyzUXnJ6qd4mUlnXxK+2b7KJ5t5iGXOPTOB3uxnN2BEZClr/l5YBcSSfx9ywHlAEGtugy7FyNYk/StlTbo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1658190347; 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=SvkxacjtgZRJ7mDIShMmh2iqie3yY+tojnTdM/2CFho=; b=BEIOTEwuygye+YUPtTPgD7cx81qBu90SAnNALtXqxyi085VpGwTmuxa4cniWRHfYSXkWFErf9LRb8cc29VelAnHVCzZ4ApGAHwbMkuCAUCuL4jUhxj8JIs8tyoB2UjbXMM3I7HpY40lLMvDxit7JRFOc7RTEyf68mKGPjsPuMzw= 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+91499+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 1658190347650922.3681208382061; Mon, 18 Jul 2022 17:25:47 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id nOzyYY1788612xNgJjcbzrgd; Mon, 18 Jul 2022 17:25:47 -0700 X-Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) by mx.groups.io with SMTP id smtpd.web10.35305.1658190346605146214 for ; Mon, 18 Jul 2022 17:25:46 -0700 X-Received: by mail-pg1-f170.google.com with SMTP id r186so12082228pgr.2 for ; Mon, 18 Jul 2022 17:25:46 -0700 (PDT) X-Gm-Message-State: cA6pmNLU7voRWGpKoUM6X97Xx1787277AA= X-Google-Smtp-Source: AGRyM1uSM2UteunPKFZuZ1Nah2UQx8rcumDu/BzwG0/INstWp8CAXR09EXT+zq0dyYbs+TXRqpQPFQ== X-Received: by 2002:a65:558f:0:b0:419:57c9:31dd with SMTP id j15-20020a65558f000000b0041957c931ddmr26296808pgs.222.1658190345970; Mon, 18 Jul 2022 17:25:45 -0700 (PDT) X-Received: from MININT-0U7P5GU.redmond.corp.microsoft.com ([2001:4898:80e8:9:6532:8264:ce7d:ced]) by smtp.gmail.com with ESMTPSA id n10-20020aa7984a000000b005251c6fbd0csm9941521pfq.29.2022.07.18.17.25.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jul 2022 17:25:45 -0700 (PDT) From: "Kun Qin" To: devel@edk2.groups.io Cc: Sami Mujawar , Alexei Fedorov , Joe Lopez Subject: [edk2-devel] [PATCH v1 2/6] DynamicTablesPkg: DynamicPlatRepoLib: Fix incorrect dereferencing Date: Mon, 18 Jul 2022 17:22:50 -0700 Message-Id: <20220719002254.1891-3-kuqin12@gmail.com> In-Reply-To: <20220719002254.1891-1-kuqin12@gmail.com> References: <20220719002254.1891-1-kuqin12@gmail.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,kuqin12@gmail.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1658190347; bh=UliyAXNARDPd8xDkr8TnBFBHUbm7GYmdApCe3sqx45k=; h=Cc:Date:From:Reply-To:Subject:To; b=l9ItKZJYOPQC5pDiUqidxJqTj/HrZ+pfoaoco9JdP62jhcNu7frxnKSW+E8f6iO5gO3 xBwGMlIoQOsvyy5+W7e1sjZbivZKXn7MCfqCEqRqbZ7CfDygDWthA2HROB9rxM9YGJ4eD LFOftYfgNry/zVHPlujaMeRCXqBTHwAoi/I= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1658190349207100011 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3996 The content of token should be derived from the data section of the `CmObject` instead of the object itself. This change fixed the issue by dereferencing the token value from the data buffer of input CmObject. Cc: Sami Mujawar Cc: Alexei Fedorov Co-authored-by: Joe Lopez Signed-off-by: Kun Qin Reviewed-by: Sami Mujawar --- DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectTokenFixer.c | = 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectTok= enFixer.c b/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectToke= nFixer.c index 80d0aa17bc1a..84e4bb7e3bc8 100644 --- a/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectTokenFixer= .c +++ b/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectTokenFixer= .c @@ -60,7 +60,7 @@ TokenFixerItsGroup ( ) { ASSERT (CmObject !=3D NULL); - ((CM_ARM_ITS_GROUP_NODE *)CmObject)->Token =3D Token; + ((CM_ARM_ITS_GROUP_NODE *)CmObject->Data)->Token =3D Token; return EFI_SUCCESS; } =20 --=20 2.36.0.windows.1 -=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 (#91499): https://edk2.groups.io/g/devel/message/91499 Mute This Topic: https://groups.io/mt/92473111/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-