From nobody Wed Feb 11 04:19:48 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+94883+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+94883+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1665393681; cv=none; d=zohomail.com; s=zohoarc; b=EB9HYGFwLS/Ma3/eWFi+9YR98ZNnXtyFyfHu9w8GEEB+YIMoO2el5QdXS+6YnKcVxfbNwxJkb8wtXr3f3lzyzVApUxBssluAipf0ehDtSt7M0sz2d+YHv6B8ReKKXvvX790oNnpQw1hYVdIUNSUzlPK4SAx3m6RisqljIEUV770= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1665393681; 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=MVw2UfyVJIWGwMEuSZOMOx3XLybXJmgqLEydNpLAXtk=; b=VBpQwgY7wdQ8HvOrdkLmZI3qfBVu/ax2I9FPG+WF19e7gFRrCdqRHRJJVp1tlRIGrppA9CA49eJbKDV0F//+3Siamls3wkO1InlJPRHNnVaKjzZv4QYZK3IWS7FgZ4eEW4a7W/UTCk6dOpcNUWzjXSBMdw8BnY4fGxHRsxEJ0ac= 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+94883+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 1665393681311637.9108408551847; Mon, 10 Oct 2022 02:21:21 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 31akYY1788612xZO3ECne1pm; Mon, 10 Oct 2022 02:21:21 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.4405.1665393679816561316 for ; Mon, 10 Oct 2022 02:21:19 -0700 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A74CB1480; Mon, 10 Oct 2022 02:21:25 -0700 (PDT) X-Received: from pierre123.arm.com (unknown [10.57.34.234]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B1BAC3F792; Mon, 10 Oct 2022 02:21:18 -0700 (PDT) From: "PierreGondois" To: devel@edk2.groups.io Cc: Sami Mujawar , Alexei Fedorov Subject: [edk2-devel] [PATCH 02/14] DynamicTablesPkg: Add PrintString to CmObjParser Date: Mon, 10 Oct 2022 11:20:46 +0200 Message-Id: <20221010092058.118714-3-Pierre.Gondois@arm.com> In-Reply-To: <20221010092058.118714-1-Pierre.Gondois@arm.com> References: <20221010092058.118714-1-Pierre.Gondois@arm.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,pierre.gondois@arm.com X-Gm-Message-State: dMI5zfajhbDRR4v5OkBCWQkJx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1665393681; bh=QIs9Xy4gzqualt3Yqd3DYkNCgjEbU96m0UCgRnktKoo=; h=Cc:Date:From:Reply-To:Subject:To; b=rLo7fE1uM/Co0Wur18zUr1AOy5nnHf87bXET1G/m1CsF7/+ZZOS+lrH4PyXAxwJU+lW JAUS2oid8j5HL4PTmfSpJtBMaT7er/oFC11vZ/Sep0gkTAPEpe03JsAUdf6QVs698cRAl JSibC7sqXavdlvuLhyrRphUQ/3ZxW1cMwXU= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1665393683475100009 Content-Type: text/plain; charset="utf-8" From: Pierre Gondois Add a PrintString to print strings in the CmObjParser. String must be NULL terminated and no buffer overrun check is done by this function. Signed-off-by: Pierre Gondois Reviewed-by: Sami Mujawar --- .../ConfigurationManagerObjectParser.c | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationMa= nagerObjectParser.c b/DynamicTablesPkg/Library/Common/TableHelperLib/Config= urationManagerObjectParser.c index 13e6c0e321c4..b46f19693bb5 100644 --- a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerOb= jectParser.c +++ b/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerOb= jectParser.c @@ -19,6 +19,14 @@ PrintOemId ( UINT8 *Ptr ); =20 +STATIC +VOID +EFIAPI +PrintString ( + CONST CHAR8 *Format, + UINT8 *Ptr + ); + /** A parser for EArmObjBootArchInfo. */ STATIC CONST CM_OBJ_PARSER CmArmBootArchInfoParser[] =3D { @@ -646,6 +654,24 @@ PrintOemId ( )); } =20 +/** Print string. + + The string must be NULL terminated. + + @param [in] Format Format to print the Ptr. + @param [in] Ptr Pointer to the string. +**/ +STATIC +VOID +EFIAPI +PrintString ( + CONST CHAR8 *Format, + UINT8 *Ptr + ) +{ + DEBUG ((DEBUG_ERROR, "%a", Ptr)); +} + /** Print fields of the objects. =20 @param [in] Data Pointer to the object to print. --=20 2.25.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 (#94883): https://edk2.groups.io/g/devel/message/94883 Mute This Topic: https://groups.io/mt/94232521/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-