From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by dpdk.org (Postfix) with ESMTP id 98F11C3A8 for ; Mon, 22 Jun 2015 18:41:48 +0200 (CEST) Received: by wicnd19 with SMTP id nd19so82240171wic.1 for ; Mon, 22 Jun 2015 09:41:48 -0700 (PDT) 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:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=S8C7godRS3PkniJt3+oHXl4NheeulMGtcRlMCzPCl/A=; b=IsZZ6focacw2HTxbDB8W4g2YKpCufXSNSWMl0YEACx9pogga8eKoxhOI7sBWXz7Yd9 nctX15ertkwh85snz6aAELUZoSOdYXUaY6yuuLNV1mvmlnlgCPKqVM91SSImXu1venGw ZezAZaEOOWVuUVKABPvvKgPT7dzwrj0+QFThZFHppX1o80IS7o3ZhpMdFlNaK+o9JAac qkui62Z7ybLcQmT/wZyxGex+/nVLuZMaWj+oNjTMdSQPw1gbb5J/hdcKFK0XG1Wd7Y5z bCzi2MoxKKEogOFhgGzyT3opvps+gZ5tGb6f7pgUjDEjQ7B60btTSaBh40zjav/AKKyI xiYQ== X-Gm-Message-State: ALoCoQk9LRp4Im1yBieAantT0E/yXI1/5om/ooPAhsgX6sbqc8//SgSsAfHf1acoh6Gw4fMe1h99 X-Received: by 10.181.11.193 with SMTP id ek1mr33613793wid.15.1434991308527; Mon, 22 Jun 2015 09:41:48 -0700 (PDT) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id di7sm18040991wib.23.2015.06.22.09.41.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jun 2015 09:41:47 -0700 (PDT) From: Thomas Monjalon To: Sergio Gonzalez Monroy Date: Mon, 22 Jun 2015 18:40:46 +0200 Message-ID: <1672166.5SgetKv3Ek@xps13> Organization: 6WIND User-Agent: KMail/4.14.8 (Linux/4.0.4-2-ARCH; KDE/4.14.8; x86_64; ; ) In-Reply-To: <1434630450-10497-1-git-send-email-sergio.gonzalez.monroy@intel.com> References: <1434630450-10497-1-git-send-email-sergio.gonzalez.monroy@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] ivshmem: fix segmentation fault in corner case 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, 22 Jun 2015 16:41:48 -0000 2015-06-18 13:27, Sergio Gonzalez Monroy: > Depending on the configured segments it is possible to hit a > segmentation fault as a result of decrementing an unsigned index with > value 0. > > To avoid it, exit the loop if the index has value 0. > > Signed-off-by: Sergio Gonzalez Monroy Applied, thanks