From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [iproute PATCH] ip-route: Fix parse_encap_seg6() srh parsing Date: Mon, 22 Oct 2018 10:08:09 -0700 Message-ID: <20181022100809.0b73418f@xeon-e3> References: <20181018134414.32474-1-phil@nwl.cc> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: David Lebrun , netdev@vger.kernel.org To: Phil Sutter Return-path: Received: from mail-pf1-f176.google.com ([209.85.210.176]:42791 "EHLO mail-pf1-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727218AbeJWB1c (ORCPT ); Mon, 22 Oct 2018 21:27:32 -0400 Received: by mail-pf1-f176.google.com with SMTP id f26-v6so20211242pfn.9 for ; Mon, 22 Oct 2018 10:08:12 -0700 (PDT) In-Reply-To: <20181018134414.32474-1-phil@nwl.cc> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, 18 Oct 2018 15:44:14 +0200 Phil Sutter wrote: > In case caller did not specify 'segs' parameter, parse_srh() would read > garbage while iterating over 'segbuf'. Avoid this by initializing > 'segbuf' to an empty string. > > Fixes: e8493916a8ede ("iproute: add support for SR-IPv6 lwtunnel encapsulation") > Signed-off-by: Phil Sutter Applied