https://bugs.kde.org/show_bug.cgi?id=359829

            Bug ID: 359829
           Summary: Power PC test suite  none/tests/ppc64/test_isa_2_07.c
                    uses uninitialzed data
           Product: valgrind
           Version: 3.12 SVN
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: jsew...@acm.org
          Reporter: c...@us.ibm.com

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.

Valgrind reports the use of the uninitialized data.

Reproducible: Always


Actual Results:  
Valgrind should not report any uninitialized data accesses.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to