From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
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 <dev@dpdk.org>; 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: <xms:GbDMYN4W5cEP5ehEnxfkptcOBWw2RMwwcvqpL2BlLvaNGzDPLaW4bw>
 <xme:GbDMYK5MtEEZ_qkDBuSE2gR13iu36H7Eca1SdUI76nyH97utXy9rSsmcrWfzh5rXo
 frY2cYnCfbTY0o-Pw>
X-ME-Received: <xmr:GbDMYEdScYJbavVR-TLXzz0p10bhyzfGsll2gJSmxK1Uke8K2d9F9rJqBoa2gx-PXMc1U9plOKdx8tHFkjVCGLyLRg55j_WKV5ETvg0kqQY>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeeffedgjeejucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr
 shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg
 ftrfgrthhtvghrnhepudeggfdvfeduffdtfeeglefghfeukefgfffhueejtdetuedtjeeu
 ieeivdffgeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh
 homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth
X-ME-Proxy: <xmx:GbDMYGI-gwoto-W1T9bBdGAfnfhNcxG2cKzDj2JfOQsiT5FWgZeFnQ>
 <xmx:GbDMYBJgiR6qFdRm_e9u_kFYgZ3vvMSg3CLk2s9TS1GzqHUs6VOCiA>
 <xmx:GbDMYPyvTBopRZkzFHrvY81_r9bWs2kdVOUdE3CIPvqhQxT5ia3OrQ>
 <xmx:GbDMYB2ZRN68bJhXm8mR29-pKhJ4qx34DHgRCrGjBtl_b0hlXJFaxA>
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri,
 18 Jun 2021 10:39:20 -0400 (EDT)
From: Thomas Monjalon <thomas@monjalon.net>
To: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Cc: dev@dpdk.org, Zhihong Peng <zhihongx.peng@intel.com>,
 Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>, Neil Horman <nhorman@tuxdriver.com>
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 <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

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 <dmitry.kozliuk@gmail.com>

Applied, thanks