From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] app/testpmd: fix potential out of bounds read Date: Mon, 23 Mar 2015 12:36:19 +0100 Message-ID: <2643410.PrzXxXOQ1Y@xps13> References: <1425907269-20856-1-git-send-email-julien.cretin@trust-in-soft.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Julien Cretin Return-path: In-Reply-To: <1425907269-20856-1-git-send-email-julien.cretin-5/pgmGDL2QNYvNUnsyAbJwC/G2K4zDHf@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" > 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