From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 6B69EA48C; Mon, 22 Jan 2018 14:14:25 +0100 (CET) Received: from lfbn-lil-1-110-231.w90-45.abo.wanadoo.fr ([90.45.197.231] helo=droids-corp.org) by mail.droids-corp.org with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1edbvi-0006dL-Cn; Mon, 22 Jan 2018 14:14:31 +0100 Received: by droids-corp.org (sSMTP sendmail emulation); Mon, 22 Jan 2018 14:14:22 +0100 Date: Mon, 22 Jan 2018 14:14:22 +0100 From: Olivier Matz To: Xueming Li Cc: dev@dpdk.org, Adrien Mazarguil , stable@dpdk.org Message-ID: <20180122131422.mjfm6jwz5oil5dnz@platinum> References: <20180120032631.132978-1-xuemingl@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180120032631.132978-1-xuemingl@mellanox.com> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [dpdk-dev] [PATCH] cmdline: avoid garbage in unused fields of parsed result X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jan 2018 13:14:25 -0000 On Sat, Jan 20, 2018 at 11:26:31AM +0800, Xueming Li wrote: > The result buffer was not initialized before parsing, inducing garbage > in unused fields or padding of the parsed structure. > > Initialize the result buffer each time before parsing. > > Fixes: af75078fece3 ("first public release") > Cc: stable@dpdk.org > Signed-off-by: Xueming Li Acked-by: Olivier Matz