[LLVMbugs] [Bug 23798] sprintf format with %.2X mis-formats a char with a value of 0xFF when part of a char array

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 9 09:42:10 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23798

hstong at ca.ibm.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |hstong at ca.ibm.com
         Resolution|---                         |INVALID

--- Comment #1 from hstong at ca.ibm.com ---
I suggest that you use "%.2hhX" or add a cast to "unsigned char".

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150609/299a8869/attachment.html>


More information about the llvm-bugs mailing list