From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=6YeeCG6BDDxWKbW5GWTYsqtw4HDGHQcAzGtU779HNjU=; b=Sxh2WpWwguBQoqO4595Rf8XPwx19WA553gBa0sx5rqk2x3Tr/NLGqadNL5C5pnrNzQ W7/LjBaGSvj8dCXt4tKryjVc3ZXGUt2hYPQUuelvfZTvJC3YPqYv94oWwKkKfQ59O7Np 0ADg7xby/I7wsY00TLGR05bME6dhMaBzZpFYennD9HCDCXQ+uKNiGxxERPnjTnZwBOz6 rdP3gBjP1wFBocNn2/jquWP5d6hHGfigVFcT7zFh4tqzHYN8MocUPVg3PKwOIED88QMA Dvf7cYd2tQhWcIF0MX8VTsKfSZzu1gsP4YXT6XhP86tfq25aKD9UOf5Enw/lzpIPpgml xhOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=6YeeCG6BDDxWKbW5GWTYsqtw4HDGHQcAzGtU779HNjU=; b=ca+1qOhLiJojeFSndKmbrxlfQUzIIEIIE+Vot7IbFSiqEkBXFKxQWA6a2mWoxlBhG5 NegeIUiUOEv2l08gbheY5JcVzdFoEbDVciCkZYh9nZloTz0pDobjeA24sFVyMCNp2ChE OHuZcJmvagP7eP/P6q8B5AGawyfDGdtLWlG2RWWnzN75RkdfceQDedIkrvJlzd9WCXYy keIPgQwQtm55dNg2xLfr1uIVv0qqphQl/qo4VK+//r1Jga/4pevTHBTH6DReb5B9egFE AsqZEKgOM7/UK2IPDK2cybOgHBAG9pWt3PySfxWiIzVz2MuWeeqT2V+eedbxGPfrxiJ+ h7nQ== X-Gm-Message-State: ALyK8tK0uGC6PHixTq+oAitBUYjACEBOkyItnWqIGjSw47iJXkhee/zmpdDdv4yzgKd0yIm2 X-Received: by 10.194.133.195 with SMTP id pe3mr120867wjb.29.1468247341793; Mon, 11 Jul 2016 07:29:01 -0700 (PDT) Received: from xps13.localnet (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id ah4sm108434wjc.16.2016.07.11.07.29.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jul 2016 07:29:00 -0700 (PDT) From: Thomas Monjalon To: Beilei Xing Cc: dev@dpdk.org, jingjing.wu@intel.com, michalx.k.jastrzebski@intel.com Date: Mon, 11 Jul 2016 16:28:56 +0200 Message-ID: <1564326.IbQs054GMW@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1467699340-16448-1-git-send-email-beilei.xing@intel.com> References: <1467699340-16448-1-git-send-email-beilei.xing@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] examples/tep_term: fix out-of-bounds access X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2016 14:29:02 -0000 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