From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A699EC49361 for ; Fri, 18 Jun 2021 14:39:28 +0000 (UTC) Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by mail.kernel.org (Postfix) with ESMTP id D337F61154 for ; Fri, 18 Jun 2021 14:39:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D337F61154 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=monjalon.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D2B5340150; Fri, 18 Jun 2021 16:39:26 +0200 (CEST) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by mails.dpdk.org (Postfix) with ESMTP id 6775940142 for ; Fri, 18 Jun 2021 16:39:25 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 16C2512D0; Fri, 18 Jun 2021 10:39:22 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 18 Jun 2021 10:39:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm1; bh= 5Rjw043fG65N3D37HVQ4wIikdegmwrvJ9HUiucjNYPo=; b=1gNkzhtnAluhPDVj t+6cP2do+3A6iSqw1lkCHqVsEWxE2UgEBT8sDSV8EgT7pbQIq6eSv4p32gBqoMh/ 1JH9PcrrH7IkiomvygcSrFT4OpHtecH1gBDspf00E2JFlw3B95cfp6AYM6m9b9b1 h79TctCngkdYoAgYOZ7lUUXHOfVODiGvCyMcDDt6CGcSFXWQGnGGGspkNgmVTEGD T8Fk0RJ9A+7z5hmIittiKZzWLBFS3r4l+lFA2z6rGmo9ZcF+TH6KR7kwyraNnV1q gBCoBl775Vu/n/9L0fG+tUwgFna1IJ5cAt/v19iToXkhFp7tHivlxnJ+VLpY1utU 6RUTfw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=5Rjw043fG65N3D37HVQ4wIikdegmwrvJ9HUiucjNY Po=; b=Rx8AuDw+Y9s5sTtAwsbpJw9bjnO2lhNlFJD3B+pRVC2tc5g7jw+hJ6LIL scsC8xVv13om3i3BSflQpfICxy7IzdltvMKIhMlGLsf+2z/MjIlImqoegP91Y8P/ +jVd5as2qkCjwPfR6/a064Hg9B9hDopqlGU1GRQV/OGzIMTCOC0GsOYkgQtgfg16 MzsFf1RJhzX19e2UiOOUf9eO5n9cginlOHENIk/OAS/lM73+CJz9IT2BsdWybue/ 3sLmfraUpk24o5HtEpTpOLXnb2Cnga/oonhUUHiiOdxtbE+vg8qo4olvrQgTKhF0 EvzV97UdKrq/vtGCZa2ESbrnWaElA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeeffedgjeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepudeggfdvfeduffdtfeeglefghfeukefgfffhueejtdetuedtjeeu ieeivdffgeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 18 Jun 2021 10:39:20 -0400 (EDT) From: Thomas Monjalon To: Dmitry Kozlyuk Cc: dev@dpdk.org, Zhihong Peng , Dmitry Kozlyuk , Neil Horman Date: Fri, 18 Jun 2021 16:39:17 +0200 Message-ID: <2699971.VHXVIJsRGd@thomas> In-Reply-To: <20210527212421.24224-1-dmitry.kozliuk@gmail.com> References: <20210526214343.31352-1-dmitry.kozliuk@gmail.com> <20210527212421.24224-1-dmitry.kozliuk@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v2] pmdinfogen: allow padding after NUL terminator X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 27/05/2021 23:24, Dmitry Kozlyuk: > Size of string constant symbol may be larger than its length > measured up to NUL terminator. In this case pmdinfogen included padding > bytes after NUL terminator in generated source, yielding incorrect code. > > Always trim string data to NUL terminator while reading ELF. > It was already done for COFF because there's no symbol size. > > Bugzilla ID: 720 > Fixes: f0f93a7adfee ("buildtools: use Python pmdinfogen") > > Signed-off-by: Dmitry Kozlyuk Applied, thanks