This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix array overflow in gcc.dg/vect/no-vfa-vect-depend-2.c
- From: Paul Pluzhnikov <ppluzhnikov at google dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 18 Feb 2014 18:24:17 -0800
- Subject: Re: [patch] Fix array overflow in gcc.dg/vect/no-vfa-vect-depend-2.c
- Authentication-results: sourceware.org; auth=none
- References: <ye6qwqhagysd dot fsf at elbrus2 dot mtv dot corp dot google dot com> <20140210080910 dot GF20378 at tucnak dot redhat dot com>
Jakub,
On Mon, Feb 10, 2014 at 12:09 AM, Jakub Jelinek <jakub@redhat.com> wrote:
> On Tue, Feb 04, 2014 at 04:59:14PM -0800, Paul Pluzhnikov wrote:
>> gcc/testsuite/ChangeLog:
>>
>> 2014-02-04 Paul Pluzhnikov <ppluzhnikov@google.com>
>>
>> * gcc.dg/vect/no-vfa-vect-depend-2.c (main1): Fix buffer
>> overflow.
>
> Ok, thanks.
Sorry, did you vouch for this:
- for (i = N - 1; i >= 0; i--)
+ for (i = N - 2; i >= 0; i--)
or that:
-int ia[N] = {48,45,42,39,36,33,30,27,24,21,18,15,12,9,6,3,0};
+int ia[N + 1] = {48,45,42,39,36,33,30,27,24,21,18,15,12,9,6,3,0};
Thanks,
--
Paul Pluzhnikov