public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* Re: 2.6.27: "array subscript is above array bounds" warnings
       [not found] <48F4FE60.4060102@tfh-berlin.de>
@ 2008-10-18  6:50 ` Andrew Morton
  2008-10-18 15:00   ` Alan Stern
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Morton @ 2008-10-18  6:50 UTC (permalink / raw)
  To: Oliver Bock; +Cc: linux-kernel, linux-acpi, xfs-masters, linux-usb

(cc's added)

On Tue, 14 Oct 2008 22:17:36 +0200 Oliver Bock <bock@tfh-berlin.de> wrote:

> Hi all,
> 
> FYI, I just came across the following warnings when compiling 2.6.27 
> (release) using gcc 4.3.2 (Debian 4.3.2-1) on Debian Lenny (i386):
> 
> ----------
> drivers/acpi/tables/tbfadt.c: In function ___acpi_tb_create_local_fadt___:
> include/asm/string_32.h:75: warning: array subscript is above array bounds
> 
> drivers/usb/core/hcd.c: In function ___usb_hcd_poll_rh_status___:
> include/asm/string_32.h:75: warning: array subscript is above array bounds
> 
> fs/xfs/xfs_mount.c: In function ___xfs_mod_sb___:
> fs/xfs/xfs_mount.c:1456: warning: array subscript is above array bounds
> ----------


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 2.6.27: "array subscript is above array bounds" warnings
  2008-10-18  6:50 ` 2.6.27: "array subscript is above array bounds" warnings Andrew Morton
@ 2008-10-18 15:00   ` Alan Stern
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Stern @ 2008-10-18 15:00 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Oliver Bock, linux-kernel, linux-acpi, xfs-masters, linux-usb

On Fri, 17 Oct 2008, Andrew Morton wrote:

> (cc's added)
> 
> On Tue, 14 Oct 2008 22:17:36 +0200 Oliver Bock <bock@tfh-berlin.de> wrote:
> 
> > Hi all,
> > 
> > FYI, I just came across the following warnings when compiling 2.6.27 
> > (release) using gcc 4.3.2 (Debian 4.3.2-1) on Debian Lenny (i386):

...

> > drivers/usb/core/hcd.c: In function ___usb_hcd_poll_rh_status___:
> > include/asm/string_32.h:75: warning: array subscript is above array bounds

Does this refer to the call to memcpy() in usb_hcd_poll_rh_status()?

Line 75 in string_32.h is part of the __constant_memcpy() function.  
That function should not be involved here because the length argument 
isn't a compile-time constant.

This has to be either a compiler bug or else a bug in the
implementation of memcpy.

Alan Stern


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-18 15:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <48F4FE60.4060102@tfh-berlin.de>
2008-10-18  6:50 ` 2.6.27: "array subscript is above array bounds" warnings Andrew Morton
2008-10-18 15:00   ` Alan Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox