From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] examples/vm_power_manager: buffer not null terminated Date: Mon, 16 May 2016 14:48:55 +0200 Message-ID: <2253927.FQD33mOOFG@xps13> References: <1460473986-3816-1-git-send-email-danielx.t.mrzyglod@intel.com> <1462895362-29323-1-git-send-email-danielx.t.mrzyglod@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Daniel Mrzyglod Return-path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id 5A4BC5A83 for ; Mon, 16 May 2016 14:48:58 +0200 (CEST) Received: by mail-wm0-f45.google.com with SMTP id n129so99865835wmn.1 for ; Mon, 16 May 2016 05:48:58 -0700 (PDT) In-Reply-To: <1462895362-29323-1-git-send-email-danielx.t.mrzyglod@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" 2016-05-10 17:49, Daniel Mrzyglod: > CID30691: > If the buffer is treated as a null terminated string in later operations, > a buffer overflow or over-read may occur. > > In add_vm: The string buffer may not have a null terminator if the source > string's length is equal to the buffer size > > Fixes: e8ae9b662506 ("examples/vm_power: channel manager and monitor in host") > > Signed-off-by: Daniel Mrzyglod Applied, thanks