From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl0-f41.google.com ([209.85.160.41]:46595 "EHLO mail-pl0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966176AbeCSQ4m (ORCPT ); Mon, 19 Mar 2018 12:56:42 -0400 Received: by mail-pl0-f41.google.com with SMTP id f5-v6so10568989plj.13 for ; Mon, 19 Mar 2018 09:56:41 -0700 (PDT) From: Stephen Hemminger To: netdev@vger.kernel.org Cc: Stephen Hemminger Subject: [PATCH iproute2 0/5] string truncation warning fixes Date: Mon, 19 Mar 2018 09:56:33 -0700 Message-Id: <20180319165638.30166-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org List-ID: Building iproute2 with gcc-8 shows some new warning about string truncation. These are obvious patches to fix most of these. Still need to fix lib/bpf.c and tc/m_ematch.c Stephen Hemminger (5): ip: use strlcpy() to avoid truncation tunnel: use strlcpy to avoid strncpy warnings bridge: avoid snprint truncation on time pedit: fix strncpy warning namespace: limit length of network namespace bridge/mdb.c | 4 ++-- ip/iplink.c | 14 +++++++------- ip/tunnel.c | 12 ++++++------ lib/namespace.c | 14 +++++++++++--- misc/nstat.c | 4 ++-- misc/ss.c | 2 +- tc/m_ematch.c | 2 +- tc/m_pedit.c | 2 +- tc/tc_class.c | 5 +++-- 9 files changed, 34 insertions(+), 25 deletions(-) -- 2.16.2