mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
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