From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3] cfgfile: fix unitialised buffer Date: Wed, 01 Jul 2015 23:36:19 +0200 Message-ID: <1951620.DRXia7vYdA@xps13> References: <1435307833-7432-1-git-send-email-danielx.t.mrzyglod@intel.com> <1435590363-4656-1-git-send-email-danielx.t.mrzyglod@intel.com> <3EB4FA525960D640B5BDFFD6A3D8912632393071@IRSMSX108.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: "Mrzyglod, DanielX T" Return-path: Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) by dpdk.org (Postfix) with ESMTP id 72130374D for ; Wed, 1 Jul 2015 23:37:28 +0200 (CEST) Received: by wiga1 with SMTP id a1so136802214wig.0 for ; Wed, 01 Jul 2015 14:37:28 -0700 (PDT) In-Reply-To: <3EB4FA525960D640B5BDFFD6A3D8912632393071@IRSMSX108.ger.corp.intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2015-06-29 19:47, Dumitrescu, Cristian: > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Daniel Mrzyglod > > Nature of the problem was not initialised buffer[256], there were probability > > that operation system will provide previously used memory and on special > > condition > > there were probability that string operations will work on random data that > > could provide unexpected program behaviour. > > > > Changes in v3: > > -Simplify the initialization of buffer. > > Changes in v2: > > -Found the real nature of problem. Only buffer was not initilized. > > Changes in v1: > > -Add additional separate IO buffer and initialize both buffers. > > > Acked-by: Cristian Dumitrescu Applied, thanks