From: Daniel Vetter Subject: Re: [PATCH i-g-t 3/3] tests/gem_seqno_wrap: fix over allocation of buffers Date: Mon, 10 Feb 2014 10:04:25 +0100 Message-ID: <20140210090425.GK17001@phenom.ffwll.local> References: <1391792619-17110-1-git-send-email-thomas.wood@intel.com> <1391792619-17110-4-git-send-email-thomas.wood@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f47.google.com (mail-ee0-f47.google.com [74.125.83.47]) by gabe.freedesktop.org (Postfix) with ESMTP id 9B3BAFA0A9 for ; Mon, 10 Feb 2014 01:04:34 -0800 (PST) Received: by mail-ee0-f47.google.com with SMTP id d49so2763052eek.6 for ; Mon, 10 Feb 2014 01:04:31 -0800 (PST) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: Thomas Wood Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, Feb 07, 2014 at 05:32:26PM +0000, Thomas Wood wrote: > > [PATCH i-g-t 3/3] tests/gem_seqno_wrap: fix over allocation of buffers > > For clarity, this should probably be "fix over allocation of arrays", > since the arrays were being allocated as an array of buffers instead > of an array of pointers to buffers. All patches merged, thanks. btw I've also switched to calloc - it's good security style to use an explicit array allocation function since those handle overflows already. But not worth the bother of another patch for testcases ;-) -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch