From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) by dpdk.org (Postfix) with ESMTP id 11EF911C5 for ; Mon, 23 Mar 2015 12:37:01 +0100 (CET) Received: by wibdy8 with SMTP id dy8so44782564wib.0 for ; Mon, 23 Mar 2015 04:37:01 -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=mHCkx0lhLDl9yL6eItnRAfWZsR1xEpS/ogg8dfDUMJQ=; b=CKIOO4ZShGAHPhdb75v4D+D+eQ8Kq5wwCYkZAUMtWf/euQSxjgcV/+U/dvCKze6Gqh arEdvGckjAeKUylNBQ4eBhblOoUGEiyxsunAahQcgvF76vDa6dq5adGmb6qIitlkypWt iGjQJazvaWZPBIfD2TBmk+K2lHTHwyN2JaDW/04N4Dm9NgbQ4BYp0ZcKar250qhUMSAo QPKCyxQHxbfoZiOhj0fGCSs0VHtRX8T8dkg7wVuZu4p4Ch/1NCZW1eV/NHX3kOIi46Um KYtTkoqmthFTzLeHQy583asSQvH0iEN+PL0cUNRU+/e5uFC1yT3I0fYfdZLNPiJYtp9X NuEg== X-Gm-Message-State: ALoCoQkXW3+g7YTwMGu5DGyUq3pEEzoRdgTQjjjiaxGr/mdLm5aSv71B4Ff3Z9S7XEyb7nZetCDA X-Received: by 10.181.27.199 with SMTP id ji7mr18223129wid.76.1427110620901; Mon, 23 Mar 2015 04:37:00 -0700 (PDT) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id fs8sm10812343wib.8.2015.03.23.04.36.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Mar 2015 04:37:00 -0700 (PDT) From: Thomas Monjalon To: Julien Cretin Date: Mon, 23 Mar 2015 12:36:19 +0100 Message-ID: <2643410.PrzXxXOQ1Y@xps13> Organization: 6WIND User-Agent: KMail/4.14.4 (Linux/3.18.4-1-ARCH; KDE/4.14.4; x86_64; ; ) In-Reply-To: <1425907269-20856-1-git-send-email-julien.cretin@trust-in-soft.com> References: <1425907269-20856-1-git-send-email-julien.cretin@trust-in-soft.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] app/testpmd: fix potential out of bounds read 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, 23 Mar 2015 11:37:01 -0000 > After the last enabled port has been seen, and the last time we > evaluate the loop condition, there is an out of bounds read in > ports[p].enabled because p is equal to size, which is the length of > ports. > > Signed-off-by: Julien Cretin Acked-by: Thomas Monjalon Applied, thanks