lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.44L0.0810181050570.1298-100000@netrider.rowland.org>
Date:	Sat, 18 Oct 2008 11:00:06 -0400 (EDT)
From:	Alan Stern <stern@...land.harvard.edu>
To:	Andrew Morton <akpm@...ux-foundation.org>
cc:	Oliver Bock <bock@...-berlin.de>, <linux-kernel@...r.kernel.org>,
	<linux-acpi@...r.kernel.org>, <xfs-masters@....sgi.com>,
	<linux-usb@...r.kernel.org>
Subject: Re: 2.6.27: "array subscript is above array bounds" warnings

On Fri, 17 Oct 2008, Andrew Morton wrote:

> (cc's added)
> 
> On Tue, 14 Oct 2008 22:17:36 +0200 Oliver Bock <bock@...-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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ