From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR03-DB5-obe.outbound.protection.outlook.com (EUR03-DB5-obe.outbound.protection.outlook.com [40.107.4.82]) by mx.groups.io with SMTP id smtpd.web12.6096.1634724884505324887 for ; Wed, 20 Oct 2021 03:14:45 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=dOYwX5Nm; spf=pass (domain: arm.com, ip: 40.107.4.82, mailfrom: sami.mujawar@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fawAFHg9O2AYtVepDTEfqQhmQgvfMNTzAS2vFyKLzmU=; b=dOYwX5NmgLI19KqebKl9LNJJ6TtDZUmnptSY2LO3GIbNzfUTGoAWdekNA80yaEqe24XYoTMjnTtPd7TGzh76XLDA/4O5njgtnp41f70cdiJk2X1pW5he2l+BsNr/cIwUBWpuLIHzc+lZrOOFe5iVgjvDPCHkR2H5d/Uo+6dxnDg= Received: from AM6PR10CA0042.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:80::19) by AS8PR08MB6198.eurprd08.prod.outlook.com (2603:10a6:20b:29f::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.17; Wed, 20 Oct 2021 10:14:40 +0000 Received: from AM5EUR03FT032.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:80:cafe::79) by AM6PR10CA0042.outlook.office365.com (2603:10a6:209:80::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16 via Frontend Transport; Wed, 20 Oct 2021 10:14:40 +0000 X-MS-Exchange-Authentication-Results: spf=temperror (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=temperror action=none header.from=arm.com; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of arm.com: DNS Timeout) Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT032.mail.protection.outlook.com (10.152.16.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15 via Frontend Transport; Wed, 20 Oct 2021 10:14:39 +0000 Received: ("Tessian outbound d5def7722ff7:v103"); Wed, 20 Oct 2021 10:14:38 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: b202beb7332db59a X-CR-MTA-TID: 64aa7808 Received: from 33bf123914b5.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 7E207344-FFBA-4DD7-B9F1-CE270FF13130.1; Wed, 20 Oct 2021 10:14:27 +0000 Received: from EUR01-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 33bf123914b5.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 20 Oct 2021 10:14:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ipJllQpeawx1vot74NPcS4I5TkixRSWN5NsbVBm9JmmA3TwTCpmPZ10LzXqr5Ia2MumtSv9iFS3T+6JD6VMjAqD26PHMmwcU0amcnhGB+ht9IxOR3Md7LasvbvarL5qeKrF63yghYKpGCE5B5+Y0ejvQtCMpiXz18el1Qp+KkQeWHgJTPlbslD0+kjDygt9jaTLEmPNXyBW5gcdWzxZfmpEKjXBOBDnBtVuVDYMwebJvnZLKTMnQ+mYP+nfTMpkdVamQrT6muVWp6NxBKLDb1I+zcGYFPA+GEH0TKE7UsWdRvUIvs33t3ttFPgnGJNgGf0KAkCCLGYIZ6ZkU+AMrXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fawAFHg9O2AYtVepDTEfqQhmQgvfMNTzAS2vFyKLzmU=; b=S0Opf6LrZ2dMj1l/pdFUjmDA/mE1xgR0SjiQr4ohk5LKRDo/9wWY65X7JkoJQNmC9gn9w1U9lEGa1wf7yhwYXnP573zygT5mVtJ6Ufs7Vb/+zI3Wn8wHhK8kr8Awco5auBKdHRncePd2tWrRL6hvpjYxJG+KBNmZy0jTvsgZDeGNnKRgpi6m2hccQXBUL5rhH38fyrzoyDPoCMgGmP2nSDxhDTAqzZmrXUzUI4zbBSBi88G5onFQwfhU2PkEuUqhN25tMHY6WIbeUIGRxgH/rKn9RLli2cy5NLIgUYJVL9KB0w/GgeWEPGebLPD7xm5TPhAv/T3LWGIgeEsKXxcb8Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fawAFHg9O2AYtVepDTEfqQhmQgvfMNTzAS2vFyKLzmU=; b=dOYwX5NmgLI19KqebKl9LNJJ6TtDZUmnptSY2LO3GIbNzfUTGoAWdekNA80yaEqe24XYoTMjnTtPd7TGzh76XLDA/4O5njgtnp41f70cdiJk2X1pW5he2l+BsNr/cIwUBWpuLIHzc+lZrOOFe5iVgjvDPCHkR2H5d/Uo+6dxnDg= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from AS8PR08MB6806.eurprd08.prod.outlook.com (2603:10a6:20b:39b::12) by AM6PR08MB4787.eurprd08.prod.outlook.com (2603:10a6:20b:c9::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16; Wed, 20 Oct 2021 10:14:20 +0000 Received: from AS8PR08MB6806.eurprd08.prod.outlook.com ([fe80::54b5:239d:9896:ee65]) by AS8PR08MB6806.eurprd08.prod.outlook.com ([fe80::54b5:239d:9896:ee65%4]) with mapi id 15.20.4608.018; Wed, 20 Oct 2021 10:14:20 +0000 Subject: Re: [PATCH 1/1] DynamicTablesPkg: Fix void pointer arithmetic To: Pierre.Gondois@arm.com, devel@edk2.groups.io, Alexei Fedorov References: <20211014145922.19790-1-Pierre.Gondois@arm.com> From: "Sami Mujawar" Message-ID: Date: Wed, 20 Oct 2021 11:14:18 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 In-Reply-To: <20211014145922.19790-1-Pierre.Gondois@arm.com> X-ClientProxiedBy: LO2P265CA0277.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a1::25) To AS8PR08MB6806.eurprd08.prod.outlook.com (2603:10a6:20b:39b::12) MIME-Version: 1.0 Received: from [10.1.196.43] (217.140.106.52) by LO2P265CA0277.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a1::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15 via Frontend Transport; Wed, 20 Oct 2021 10:14:19 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ed3d3d60-c1f1-4716-8a62-08d993b26cf9 X-MS-TrafficTypeDiagnostic: AM6PR08MB4787:|AS8PR08MB6198: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:6790;OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: rFvIUmgZiQh8RjcglGJrSrQKxB744A56o6fJMTjNlesEPu0dEz1N8R/+jqutN5+93xrkjIAcw8QLzgRmACa1QU1nE7BkADgUmPjnMeiITTqK/1MaeB+PWF7H6bc68U2/68N4S0GRur4MkAbIO8hCNj0wrfIluAug+eKBr78Aus93AhSb/kgsfPrzNMK2nNbLPjxRb6uiiM8RzRWyJpIMqciffSzwf6me6z6O84/SNbwX14x3OK40pksx+LbIqU4ry05QIZta5wJkkI/HfQ9jrTPg/wdkXO+ndBS8ATVowUcAUfqcYIzalH8wW6mZbJIzY/do2uyUlVVlyM02vr1JweSFSlKQ4ue1/iPjKG5zSdqzAaruIn99bDgvRVL0QQ3jfbwrRklBMfkBh236R7Izc5jRIQuUXWXcorUZ2JXD51YPEYPV5wr+UCcIvIq1KAW3nU5oh27TlD0HAoXsabPWIvpcXMOea/XkBLeYcHgK5/Iax9LTzqkPOYSV8jp7QqPd5pICNafBL2ukUhB5l8h6cE+tBR7pw0rQ5374CIffp3eGLBQn9D+bI9XevIppxoKBC61/2/uXYFJFu6XfsbBAP07LlLPI7fiVXv77d0GyNnnPl6KOKoQbdkdgiHHXxC6Q2+LIFtnI21HMaDtKkogetEW9bipXYU0JohKFgw3sHEb7c8IxOwX2s0PLNmD+9F3M+fk3sZQRjdxobAK63CzQi7pxBnVqxEi+kIFg7vKV7ijjQszwTD8GMDcKb47DN4Wk23SsKBFUBSvXXeBDOBktxA== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR08MB6806.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(53546011)(52116002)(508600001)(6862004)(8936002)(44832011)(66556008)(6486002)(86362001)(2906002)(66946007)(6636002)(66476007)(26005)(36756003)(316002)(5660300002)(2616005)(956004)(83380400001)(31696002)(37006003)(16576012)(8676002)(186003)(38100700002)(38350700002)(31686004)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4787 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Return-Path: Sami.Mujawar@arm.com X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT032.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: e752ebe0-44d2-4bfb-61e1-08d993b26196 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2mgIyRzzMqxBl8QqPmgI8tqDiRq22VmB6P7Rr7EBK9LL0k1l411ZjqQqPpCLp/O0EsGOrLQvhnQIrMzvIikkX8UDKQvfX/2Y2ml6xtickeYEBIMR5TD48rzZZLTwFhTnX3YTykbmvjUqO8EsrEzP+LeHWGGPK2o0NEbjPr+SXuyFCqPmhoUzI0QpKpMXUU1mf5dwtkMm4N+Htgd9V2miXaqjMIiQKYTONZlpUzeumDWIL8brqL8BehC39YeP0VtYGlxcq6IYDlzTZ3dhhx36GAdtDlD7Vpa66qGsrRp7nEZsIZz+x5mzx2QBV9aOudA0UW/RFBWIccm6wNmnKqEP4rGi8Gszi2ppcymwsFqxUi0/ha4+4JnoJ6wgpsUFPImxnflgTcmx1Ppx1MF3jdnYCVN9/ZzNMa1NsdbyZaStVJCYy1DywrF3NluAXDmgmPaIwkr6OieJC6b3DGrktQdUYB+FZp5FRgR8uzEskSryNtHzaMXt3FlmFv/BAkhLPh185kpcBb5nLovlznAypHXHdJ5fqelxPx1IHZSf4qwP7PQgC4hRvGIIgTJxk+bi9uV4WJNoznwY/zuqdW4ZSN1YPhImq7nrfyHjbnmJpYb29nB9ldPamPLV5C5LIIEE+4gD2KGkTgl8A7GY4AideNptG5r6AkXopQVWLfKGroqHefb9NrgrP5k03Y5JZINhe4BqvCvBTdlXUFu5mcBaF51ge8fPTO0/Nxi4BTn3JE+bLU7/mxbSCG0Vgtpqk4puze2KEUHdoxU90WfDW8teY2K0kg== X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(4636009)(46966006)(36840700001)(956004)(186003)(36756003)(2616005)(63350400001)(63370400001)(31686004)(81166007)(508600001)(2906002)(36860700001)(336012)(44832011)(31696002)(86362001)(356005)(70586007)(8936002)(6636002)(82310400003)(47076005)(70206006)(37006003)(26005)(83380400001)(316002)(6862004)(16576012)(53546011)(8676002)(6486002)(5660300002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2021 10:14:39.0821 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ed3d3d60-c1f1-4716-8a62-08d993b26cf9 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT032.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6198 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-GB Hi Pierre, Thank you for this fix. Reviewed-by: Sami Mujawar Regards, Sami Mujawar On 14/10/2021 03:59 PM, Pierre.Gondois@arm.com wrote: > From: Pierre Gondois > > Building the DynamicTablesPkg with the additional > -Wpointer-arith flag triggers the following error: > "pointer of type =E2=80=98void *=E2=80=99 used in arithmetic > [-Werror=3Dpointer-arith]" > > Cast the void pointer to fix the error. > > Signed-off-by: Pierre Gondois > --- > .../Common/TableHelperLib/ConfigurationManagerObjectParser.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/DynamicTablesPkg/Library/Common/TableHelperLib/Configuration= ManagerObjectParser.c b/DynamicTablesPkg/Library/Common/TableHelperLib/Conf= igurationManagerObjectParser.c > index 2337d47e3fb3..0bdbfbb99c33 100644 > --- a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManager= ObjectParser.c > +++ b/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManager= ObjectParser.c > @@ -641,7 +641,7 @@ PrintCmObjDesc ( > )); > } > DEBUG ((DEBUG_ERROR, "\n")); > - Data +=3D Parser[Index].Length; > + Data =3D (UINT8*)Data + Parser[Index].Length; > } // for > } > IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.