From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 47BD22C72 for ; Wed, 25 May 2016 10:35:51 +0200 (CEST) Received: by mail-wm0-f46.google.com with SMTP id n129so168921286wmn.1 for ; Wed, 25 May 2016 01:35:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=iqXQzBd5CN3KdOOzs0+JbsurJtv9dWBZJTdO9ebC60c=; b=mTl4UeBi3xxjh4g9xeyAcu7l0XkTbKc1yPJiWKc97a6pY9j9HUsCB450GIfxEYxOlY wlr1UQveMv6nGWr37xmHYVWIlxar3J1tcCMjFrI74EZZ7Z2VLh/Yri7tX3DcIzwATKdX pU3ukdk+xxM+70yHz88RGcYJX8ef0VwqsUuEKPY+Fog7ruRSdBmPfQtLj1FR0TEbc42M FkAL6M0zykF3BUpWn/gaHvYY+Kh+UGk9Ky9q0LUlompGax2DK/3fjPQ5jLhUOskOcj8D iAkWacwoozpcWK/v9lWLAsZmPj4LvpVdCHNEM3WHhmlA/MqywZ6YEtGGll9iWg8gq7Rz Aj5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=iqXQzBd5CN3KdOOzs0+JbsurJtv9dWBZJTdO9ebC60c=; b=QzOsA6v0drJPWYbxQNQYRwqGEJjqcGaQRuIKCO0xtRUH8MM1KvY5N8eQJ0VKdXOUhG /cVe6e5MKzY7ILOREajxPosvcnDAQIMfunx2e7BinI47vsAPwjJudi6SVP28rsf/amXK Py3nnflppfIXdBoONVY0Wxflz9/ULaecf45tqi2RG4EACLprWG4PzZReVmsFu3K28pjr FIeQwxwJNfD5CiKthEUHO0CGmr11BU+VgMwXLUxpnSenHWmHVwoQwJqShsU8jDlJfOT/ bwWmE4u7xJ+x63PLqSKfnYCn8v7DjNqOeL/NJeGapbGsRONoU1Y4sMu5umTM6dCgf5Wt P5cg== X-Gm-Message-State: ALyK8tKgXeILuB+66bdKOZ1cYEfwOR4r3MN0sSiPadeUaLxCWe0VEweHuozuVS9YMP70nzpL X-Received: by 10.28.87.6 with SMTP id l6mr2233495wmb.48.1464165351072; Wed, 25 May 2016 01:35:51 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id a63sm7892673wmh.11.2016.05.25.01.35.49 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 May 2016 01:35:50 -0700 (PDT) From: Thomas Monjalon To: Jan Viktorin Cc: David Marchand , dev@dpdk.org Date: Wed, 25 May 2016 10:35:48 +0200 Message-ID: <3269133.cDgyNE6xaP@xps13> User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: References: <1462302927-24627-1-git-send-email-viktorin@rehivetech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] app/test: fix +/-1 error in allocation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2016 08:35:51 -0000 2016-05-04 10:15, David Marchand: > On Tue, May 3, 2016 at 9:15 PM, Jan Viktorin wrote: > > A bug has been detected by valgrind: [...] > > strlen(t->command) + strlen("#") + ONE_FOR_ZERO > > > > Fixes: 727909c59231 ("app/test: introduce dynamic commands list") > > > > Signed-off-by: Jan Viktorin > > Good catch. > Acked-by: David Marchand Applied, thanks