From nobody Mon Feb 9 05:18:56 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+92314+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+92314+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1660170540; cv=none; d=zohomail.com; s=zohoarc; b=QZCVV6tBT4fXeHOPEyCSbsRZC0vrKYd3U2kKTD3gBSGs7E5jSXrFyV5DgyuTVjV9Z3YW1tOzQhYKkiwOImnQqEFWDbcRGA9miXo4O94qga+lYV+F/iye8yKgH8Wtw6WYvhH7UXwHvvd6NHCkeBn+kroTAukAVQclpOzUpp6PLe0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1660170540; 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=cqYsNZJy4IUtwBEZTh8fSKx84kOhTxX+qkJwb8RtwX4=; b=IpTcNAjw/XFtbQ6YwqoQDc4aNSvYIO9JfxlGj58Xpg17U0QA2psBD3wDe9hQO4oTrC882q7/vipVuU1/5ZcwzEb2goKKw0MAAzUzVE/lsSwHPa4fKIclRsMEWGzn9FVCqdPtkcl70Xl+bZsLGqv8DQ9i2UsmGXmJNItnwManZYY= 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+92314+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 1660170539967273.9383455215077; Wed, 10 Aug 2022 15:28:59 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id dLPUYY1788612xlA629sEMyr; Wed, 10 Aug 2022 15:28:59 -0700 X-Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by mx.groups.io with SMTP id smtpd.web09.990.1660170539055088306 for ; Wed, 10 Aug 2022 15:28:59 -0700 X-Received: by mail-pl1-f179.google.com with SMTP id z19so15478603plb.1 for ; Wed, 10 Aug 2022 15:28:59 -0700 (PDT) X-Gm-Message-State: 4RZsOXuDtk8pXJtjJ01dPpPfx1787277AA= X-Google-Smtp-Source: AA6agR7dCQ/hjHugCdBP7ZL3A8OJMOrEUk82xlc8fxzBTNNpYjv4f8/fB63HMIpjufq4KhVax4xX+w== X-Received: by 2002:a17:902:760c:b0:16d:e87:ce93 with SMTP id k12-20020a170902760c00b0016d0e87ce93mr29378131pll.79.1660170538425; Wed, 10 Aug 2022 15:28:58 -0700 (PDT) X-Received: from MININT-0U7P5GU.redmond.corp.microsoft.com ([2001:4898:80e8:38:b518:f1a8:aef2:7dc4]) by smtp.gmail.com with ESMTPSA id h11-20020a170902f70b00b0016d66d49b85sm13309701plo.239.2022.08.10.15.28.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Aug 2022 15:28:58 -0700 (PDT) From: "Kun Qin" To: devel@edk2.groups.io Cc: Sami Mujawar , Alexei Fedorov , Joe Lopez , Sami Mujawar , Pierre Gondois Subject: [edk2-devel] [PATCH v4 2/6] DynamicTablesPkg: DynamicPlatRepoLib: Fix incorrect dereferencing Date: Wed, 10 Aug 2022 15:28:49 -0700 Message-Id: <20220810222853.1916-3-kuqin12@gmail.com> In-Reply-To: <20220810222853.1916-1-kuqin12@gmail.com> References: <20220810222853.1916-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=1660170539; bh=C43BJ6H/WwcuCQp9QB2olrc/ZrltJZT80cW9eeAFsGA=; h=Cc:Date:From:Reply-To:Subject:To; b=AvodnQenZ5jSgruemaYHkY1XUNLDlwhDJo1yJAEbmvxTe5eZemfm4eJTYKYDBwPokDz M3IGxdQQ3MyBPTTJ7wlWzpQFnQCe7B5Vxq6eSAUHexzJh0XJlLmoFuCjz+ayacW4t7Q5O azXQR6QA3yDrjhMZHhIu4IV3APe1Qsxb2Cg= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1660170540851100003 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 Reviewed-by: Pierre Gondois --- Notes: v2: - Added Reviewed-by tag [Sami] - Added Reviewed-by tag [Pierre] =20 v3: - No change. =20 v4: - No change. 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.37.1.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 (#92314): https://edk2.groups.io/g/devel/message/92314 Mute This Topic: https://groups.io/mt/92947265/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-