All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: Jarek Poplawski <jarkao2@gmail.com>,
	Linux Kernel <linux-kernel@vger.kernel.org>
Cc: David Airlie <airlied@linux.ie>, dri-devel@lists.freedesktop.org
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	[thread overview]
Message-ID: <c6d829$pvchrr@fmsmga001.fm.intel.com> (raw)
In-Reply-To: <20101225131343.GA1960@del.dom.local>

On Sat, 25 Dec 2010 14:13:43 +0100, Jarek Poplawski <jarkao2@gmail.com> 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

WARNING: multiple messages have this Message-ID (diff)
From: Chris Wilson <chris@chris-wilson.co.uk>
To: Jarek Poplawski <jarkao2@gmail.com>,
	Linux Kernel <linux-kernel@vger.kernel.org>
Cc: dri-devel@lists.freedesktop.org
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	[thread overview]
Message-ID: <c6d829$pvchrr@fmsmga001.fm.intel.com> (raw)
In-Reply-To: <20101225131343.GA1960@del.dom.local>

On Sat, 25 Dec 2010 14:13:43 +0100, Jarek Poplawski <jarkao2@gmail.com> 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

  reply	other threads:[~2010-12-25 13:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-25 13:13 [2.6.37-rc7] drivers/gpu/drm/drm_edid.c:1303: warning: array subscript is above array bounds Jarek Poplawski
2010-12-25 13:38 ` Chris Wilson [this message]
2010-12-25 13:38   ` Chris Wilson
2010-12-25 19:20   ` Jarek Poplawski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='c6d829$pvchrr@fmsmga001.fm.intel.com' \
    --to=chris@chris-wilson.co.uk \
    --cc=airlied@linux.ie \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jarkao2@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.