From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 05415A009E for ; Sun, 27 Oct 2019 11:37:03 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A8E841BF2E; Sun, 27 Oct 2019 11:37:03 +0100 (CET) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by dpdk.org (Postfix) with ESMTP id 533FF1BEB1 for ; Sun, 27 Oct 2019 11:36:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1572172618; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kItNpsf1S8CGs//gp1+mkuf+FcTfo+gDXeDxzsRBJ/I=; b=MSckqtoOnREYT6GdNIuYygRh9Kb815OC5I8zuq7OZedYq0yjR+HEfyDUvL767Th0avWs0v cNofzaXlcrE4li7q35y92kmRbTaB6CIwRUGpIGqF80zQ+WsKbawM2iDCkTMkNNcQb2N0OT 4I6/oGZWgRrqkyu8A7ia1TksKAQQnRI= Received: from mail-vk1-f200.google.com (mail-vk1-f200.google.com [209.85.221.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-25-RnD01hF1NqWv58XGFxE0OA-1; Sun, 27 Oct 2019 06:36:57 -0400 Received: by mail-vk1-f200.google.com with SMTP id h186so3410320vkg.14 for ; Sun, 27 Oct 2019 03:36:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jebGgqvqiTC/6vgQGGSluwndJ6a7huf8ZQscFeHFkeU=; b=TXaN/QUd4r0+v2x+pE27VS8K3V+aFM92B7Z918mu1MN7qkrQbRD/zGC0Tq+NPdQG0U hZ9dKZ66oYXaHRaS+l0VmtcULXvBNHTI+Bhjrd2QEwPWtM4T3aV6qnfo6497MVdfWUnk AnQPRwFIwo2LSJeNfbK7J7pIKo8MG0SXEpypd8dMJjaDH4tSm/NNxj41p2yXVkES1sNw VY4Njw9l9nxqWwO4Xvd6t2F5dMgjMIXw8R0hIp5K64AS4mso0CC5L7g2bEdlwAFZEjpv pci2IJL+OOnSC6fWxmkgoJ0tLNJDSSl0zGBl0/H9SHWkDTJuXC3JlZy4KWu2b39BqQTw iK5w== X-Gm-Message-State: APjAAAUtt9hc6eg2B+UnLzszn4OQKPVKuQkLltre+j19xK81YfiW0aJe rO0NvNGowjMsn0O6TJIHxuYubWZyQeZ3bwYOGYRRJlR+1lTLq4mJqSn7nJ14ASJCbOQ0KVE8jis ztllT8t2Nw+0iY2X+BsJKHk4= X-Received: by 2002:a67:fa99:: with SMTP id f25mr6363378vsq.141.1572172616951; Sun, 27 Oct 2019 03:36:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8inqGYRuPKs3Wcw3YY8P52l4JpB0ukXY5uT5J87tUfxLUeoqY+Hql9N0D70PpQWrjcCJa9Xa4d4KJd+pCW2U= X-Received: by 2002:a67:fa99:: with SMTP id f25mr6363366vsq.141.1572172616696; Sun, 27 Oct 2019 03:36:56 -0700 (PDT) MIME-Version: 1.0 References: <20190926151159.19256-1-ciara.power@intel.com> <20190926144420.GA1833@bricha3-MOBL.ger.corp.intel.com> In-Reply-To: <20190926144420.GA1833@bricha3-MOBL.ger.corp.intel.com> From: David Marchand Date: Sun, 27 Oct 2019 11:36:45 +0100 Message-ID: To: Bruce Richardson Cc: Ciara Power , dev , romanx.korynkevych@intel.com, Vipin Varghese , dpdk stable X-MC-Unique: RnD01hF1NqWv58XGFxE0OA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] app/proc-info: fix string copying to use strlcpy 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: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Thu, Sep 26, 2019 at 4:44 PM Bruce Richardson wrote: > > On Thu, Sep 26, 2019 at 04:11:59PM +0100, Ciara Power wrote: > > Replaced strncpy and strcpy with strlcpy. > > Also replaced snprintf with strlcpy where applicable. > > Using strlcpy is safe practice when copying strings, > > as it will include a null terminator. > > > > > > Fixes: 2deb6b5246d7 ("app/procinfo: add collectd format and host id") > > Fixes: 8a37f37fc243 ("app/procinfo: add --show-port") > > Cc: stable@dpdk.org > > Reported-by: Reshma Pattan > > Signed-off-by: Ciara Power > > --- > Acked-by: Bruce Richardson Applied, thanks. --=20 David Marchand