From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] examples/tep_term: fix out-of-bounds access Date: Mon, 11 Jul 2016 16:28:56 +0200 Message-ID: <1564326.IbQs054GMW@xps13> References: <1467699340-16448-1-git-send-email-beilei.xing@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, jingjing.wu@intel.com, michalx.k.jastrzebski@intel.com To: Beilei Xing Return-path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id 0C2662BBD for ; Mon, 11 Jul 2016 16:29:02 +0200 (CEST) Received: by mail-wm0-f45.google.com with SMTP id i5so19687401wmg.0 for ; Mon, 11 Jul 2016 07:29:02 -0700 (PDT) In-Reply-To: <1467699340-16448-1-git-send-email-beilei.xing@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-07-05 14:15, Beilei Xing: > Coverity reported lots of out-of-bounds in function > vxlan_link, these issues should happen when index > port_id evaluates to 2, cause size of arrays is > 2 in structure. > Fix this issue by modifying judgement condition, make > sure port_id is less than 2. > > Coverity issue: 107121, 107122, 107123, 107124, 107125 > > Fixes: 4abe471ed6fc ("examples/tep_term: implement VXLAN processing") > > Signed-off-by: Beilei Xing Applied, thanks