Carl Love 1df0d33a8c Power PPC test case test_isa_2_07 steps out of array bounds.
The test none/tests/ppc64/test_isa_2_07.c steps beyond the data array in a
number of places. The issue is the array is declared to be of size N. The for
loop is: for (i=0; i<N; i=i+2). In the body of the loop the array elements
A[i] and A[i+1] are accessed. On the last iteration i=N-1 and the second array
access becomes A[N-1+1] which accesses one element past the declared array
size.

This commit fixes the array bounds by making the for loop read:  
  
   for (i=0; i<N-1; i=i+2)

The expected output files 

none/tests/ppc64/jm_int_isa_2_07.stdout.exp 
none/tests/ppc64/jm_vec_isa_2_07.stdout.exp

are updated with the new expected results.

Valgrind Bugzilla 359829


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15816
2016-02-26 17:38:47 +00:00
..
2009-08-05 08:08:18 +00:00