From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6CFE7A0C42; Fri, 18 Jun 2021 16:39:27 +0200 (CEST) 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