Bug 359829 - Power PC test suite none/tests/ppc64/test_isa_2_07.c uses uninitialzed data
Summary: Power PC test suite none/tests/ppc64/test_isa_2_07.c uses uninitialzed data
Status: CLOSED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: 3.12 SVN
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-26 16:23 UTC by Carl Love
Modified: 2016-02-26 17:40 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carl Love 2016-02-26 16:23:25 UTC
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.
Comment 1 Carl Love 2016-02-26 17:40:20 UTC
The code was fixed in Valgrind commit 15816.  The expected output files were also updated for the new code.