This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFA] libiberty/hashtab.c, higher_prime_index: avoid array overrun
- From: Mike Stump <mikestump at comcast dot net>
- To: Michael Snyder <msnyder at vmware dot com>
- Cc: DJ Delorie <dj at redhat dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Thu, 3 Mar 2011 15:00:42 -0800
- Subject: Re: [RFA] libiberty/hashtab.c, higher_prime_index: avoid array overrun
- References: <4D701056.1080208@vmware.com> <201103032211.p23MB9Ed003261@greed.delorie.com> <4D70158A.5080209@vmware.com>
On Mar 3, 2011, at 2:26 PM, Michael Snyder wrote:
> DJ Delorie wrote:
>>> As written, the function will access element [30] of a 30-element array.
>> Um, no?
>
> Y-uh-huh!
fight fight fight... :-) There can be only one.