From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by dpdk.org (Postfix) with ESMTP id 77ECB3256 for ; Tue, 20 Jun 2017 13:36:39 +0200 (CEST) Received: by mail-pf0-f196.google.com with SMTP id w12so22248789pfk.0 for ; Tue, 20 Jun 2017 04:36:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+vJuUHQVIM6rzy4U2LywLJXuDBH8Pls+0rNtDduwqqk=; b=2SG65k+E4iXeJF+74lXs6TO8hQelrFHPypccAYeH/qtPNjYzCOdnLWWHx6o9b9fMJz 9IbaiAoxgyVXhYMR894tZ57ub7qqrsELcrdbOxB0FGCynBYXcxXTrKNspWlVmEJpA1Lq JGpoy3CrNpfsF9p0IK1rb66NOlTIXtAD9hFgOYX3nXizVJaIPQ2OmK98nTsfBgxuYNtn jTZBNSR+OrqWIqb4DzInl6K2drjDz2ECsTOg6exe8Bl+JkPFhF/AG8IwsOq3hKf1ImIG ZMIPHKFwtTFDIqFGjAuv0DPnACFY2XahHNuch7Ym7nHOWDlIEBLeW3kMmP2qfSY2Qx9z yzEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+vJuUHQVIM6rzy4U2LywLJXuDBH8Pls+0rNtDduwqqk=; b=e6jOX/NIzKrvK3CxB34wBsaFFBN7zyYbA46Pbis21GTWecPwBz7yD0TRDyXuZnT4c7 i/ndFHlVueV0BCfzft5PUwQgbpXTm1DuNU74x+flqHRiP6zxSePDrt810BKGGPWrFvfg c7U61StyBIb87swQjrGFxMxC8++hCPveI6r06nRjy+pAVB1tm9sVsgomi+vInla5p1jl sqgUGsfGuzfHyQ9HBW+NTgc6y/IAS1pceuE72dKlJWJAFAnqokOSd8zic4M7PI0gKaGW La646D27VX08xl8onxxuSDbsvLrG5uM8o8CP64BlYi1TJIOHNs4z9v6GDlJ6fXqykblW pxww== X-Gm-Message-State: AKS2vOyKf0z05c2YPP74vmkB16ECInkLQeovzYx50x+m2/uWDqUWsBQc jGEKBpRk3miyu14PGemvjQ== X-Received: by 10.99.2.134 with SMTP id 128mr31168652pgc.266.1497958598834; Tue, 20 Jun 2017 04:36:38 -0700 (PDT) Received: from yliu-home.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id 25sm6104783pfj.59.2017.06.20.04.36.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jun 2017 04:36:37 -0700 (PDT) From: Yuanhan Liu To: John Miller Cc: dpdk stable Date: Tue, 20 Jun 2017 19:35:18 +0800 Message-Id: <1497958550-13600-6-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497958550-13600-1-git-send-email-yliu@fridaylinux.org> References: <1497958550-13600-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/ark: fix buffer not null terminated' has been queued to stable release 17.05.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2017 11:36:39 -0000 Hi, FYI, your patch has been queued to stable release 17.05.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/22/17. So please shout if anyone has objections. Thanks. --yliu --- >>From 1ac2ed94604af7c028a81f9e63a6c0e7819051bc Mon Sep 17 00:00:00 2001 From: John Miller Date: Tue, 16 May 2017 12:14:15 -0400 Subject: [PATCH] net/ark: fix buffer not null terminated [ upstream commit 79a158130f53e9dada32f66de3f18b1e87ba7995 ] Coverity issue: 144512 Coverity issue: 144513 Fixes: 9c7188a68d7b ("net/ark: provide API for hardware modules pktchkr and pktgen") Signed-off-by: John Miller --- drivers/net/ark/ark_pktchkr.c | 2 +- drivers/net/ark/ark_pktgen.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ark/ark_pktchkr.c b/drivers/net/ark/ark_pktchkr.c index 62b3673..c3040af 100644 --- a/drivers/net/ark/ark_pktchkr.c +++ b/drivers/net/ark/ark_pktchkr.c @@ -372,7 +372,7 @@ set_arg(char *arg, char *val) o->v.INT = atoll(val); break; case OTSTRING: - strncpy(o->v.STR, val, ARK_MAX_STR_LEN); + snprintf(o->v.STR, ARK_MAX_STR_LEN, "%s", val); break; } return 1; diff --git a/drivers/net/ark/ark_pktgen.c b/drivers/net/ark/ark_pktgen.c index bdac054..8c7a8a2 100644 --- a/drivers/net/ark/ark_pktgen.c +++ b/drivers/net/ark/ark_pktgen.c @@ -354,7 +354,7 @@ pmd_set_arg(char *arg, char *val) o->v.INT = atoll(val); break; case OTSTRING: - strncpy(o->v.STR, val, ARK_MAX_STR_LEN); + snprintf(o->v.STR, ARK_MAX_STR_LEN, "%s", val); break; } return 1; -- 2.7.4