From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] ivshmem: fix segmentation fault in corner case Date: Mon, 22 Jun 2015 18:40:46 +0200 Message-ID: <1672166.5SgetKv3Ek@xps13> References: <1434630450-10497-1-git-send-email-sergio.gonzalez.monroy@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Sergio Gonzalez Monroy 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) In-Reply-To: <1434630450-10497-1-git-send-email-sergio.gonzalez.monroy@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" 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