From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: [2.6.37-rc7] drivers/gpu/drm/drm_edid.c:1303: warning: array subscript is above array bounds Date: Sat, 25 Dec 2010 13:38:56 +0000 Message-ID: References: <20101225131343.GA1960@del.dom.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTP id B43609E874 for ; Sat, 25 Dec 2010 05:39:39 -0800 (PST) In-Reply-To: <20101225131343.GA1960@del.dom.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Jarek Poplawski , Linux Kernel Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Sat, 25 Dec 2010 14:13:43 +0100, Jarek Poplawski wrote: > Hi, > There is this compile warning in Linus' tree (gcc version 4.3.3): > > drivers/gpu/drm/drm_edid.c: In function 'drm_detect_hdmi_monitor': > drivers/gpu/drm/drm_edid.c:1303: warning: array subscript is above array bounds > drivers/gpu/drm/drm_edid.c: In function 'drm_detect_monitor_audio': > drivers/gpu/drm/drm_edid.c:1303: warning: array subscript is above array bounds What array? It's declared as "u8 *edid_ext;". At first glance looks like a compiler bug, applying subscript testing to an object with unknown bounds. -Chris -- Chris Wilson, Intel Open Source Technology Centre