This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11595] sprintf %% format error resulting in output corruption
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 13 May 2010 11:46:13 -0000
- Subject: [Bug libc/11595] sprintf %% format error resulting in output corruption
- References: <20100513114042.11595.michael.yacc@blueyonder.co.uk>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jakub at redhat dot com 2010-05-13 11:46 -------
No, the testcase is invalid. In the second printf you pass in % AAAA
in the format string, which means that a double argument of that printf (none
was provided) is printed in hexadecimal notation, followed by AAA.
You should use printf ("%s", buf); or fputs etc.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://sourceware.org/bugzilla/show_bug.cgi?id=11595
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.