This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/10107] 32-bit PowerPC POWER6 memcpy uses erroneous cmpldi but should use cmplwi


------- Additional Comments From rsa at us dot ibm dot com  2009-04-30 15:38 -------
I attempted to produce a standalone testcase that would pass the high-word bits
of r5 as non-zero to the power6 memcpy but I was unable to get the compiler to
cooperate and reproduce the failure that I originally debugged.

Regardless, using cmpldi in 32-bit code is erroneous and in this case can cause
an overwrite of an array if r5 (length) parameter has bits set in the high-word
of the register.

Please check-in.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |2.10


http://sourceware.org/bugzilla/show_bug.cgi?id=10107

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]